| Modifier and Type | Field and Description |
|---|---|
private File |
file |
private URLClassLoader |
loader |
private String |
path |
private FakeRtsa.Spec |
spec |
| Modifier | Constructor and Description |
|---|---|
private |
Deployment(File file,
String defaultPath)
Creates a deployment specification.
|
| Modifier and Type | Method and Description |
|---|---|
FakeRtsa.FunctionMapping |
getMapping(String field)
Returns a function mapping.
|
Map<String,String> |
getMappings()
Returns all function mappings.
|
String |
getPath()
Returns the desired REST path.
|
private void |
readSpec(InputStream in)
Reads the YAML specification file "spec.yml" in the deployment file.
|
private File file
private URLClassLoader loader
private String path
private FakeRtsa.Spec spec
private Deployment(File file, String defaultPath) throws IOException
file - the file containing the deployment, must be a JARdefaultPath - in case that no path is specified in the JARIOException - if reading the file or attaching it to a class loader failsprivate void readSpec(InputStream in) throws IOException
in - the input streamIOExceptionpublic String getPath()
public FakeRtsa.FunctionMapping getMapping(String field)
field - the field to return the mapping forCopyright © 2022. All rights reserved.