private static class FakeRtsa.Deployment
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
file |
private java.net.URLClassLoader |
loader |
private java.lang.String |
path |
private FakeRtsa.Spec |
spec |
| Modifier | Constructor and Description |
|---|---|
private |
Deployment(java.io.File file,
java.lang.String defaultPath)
Creates a deployment specification.
|
| Modifier and Type | Method and Description |
|---|---|
FakeRtsa.FunctionMapping |
getMapping(java.lang.String field)
Returns a function mapping.
|
java.util.Map<java.lang.String,java.lang.String> |
getMappings()
Returns all function mappings.
|
java.lang.String |
getPath()
Returns the desired REST path.
|
private void |
readSpec(java.io.InputStream in)
Reads the YAML specification file "spec.yml" in the deployment file.
|
private java.io.File file
private java.net.URLClassLoader loader
private java.lang.String path
private FakeRtsa.Spec spec
private Deployment(java.io.File file,
java.lang.String defaultPath)
throws java.io.IOException
file - the file containing the deployment, must be a JARdefaultPath - in case that no path is specified in the JARjava.io.IOException - if reading the file or attaching it to a class loader failsprivate void readSpec(java.io.InputStream in)
throws java.io.IOException
in - the input streamjava.io.IOException - if reading the specification fails due to I/O problemspublic java.lang.String getPath()
public FakeRtsa.FunctionMapping getMapping(java.lang.String field)
field - the field to return the mapping forpublic java.util.Map<java.lang.String,java.lang.String> getMappings()
Copyright © 2026. All rights reserved.