public class Interpreter extends Object
| Constructor and Description |
|---|
Interpreter(ProjectAwareRvdContext rvdContext,
String targetParam,
String appName,
javax.servlet.http.HttpServletRequest httpRequest,
javax.ws.rs.core.MultivaluedMap<String,String> requestParams,
WorkspaceStorage workspaceStorage,
ApplicationContext applicationContext) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildAction(Map<String,String> pairs) |
void |
clearModuleVariables()
When switching from one module to the next clears module-scoped variables.
|
String |
convertRecordingFileResourceHttp(String fileResource,
javax.servlet.http.HttpServletRequest request)
Converts a file resource to a recorded wav file into an http resource accessible over HTTP.
|
String |
evaluateExtractorExpression(ValueExtractor extractor,
com.google.gson.JsonElement response_element) |
ApplicationContext |
getApplicationContext() |
String |
getAppName() |
String |
getContextPath() |
javax.servlet.http.HttpServletRequest |
getHttpRequest() |
String |
getNodeNameByLabel(String label) |
ProjectLogger |
getProjectLogger() |
javax.ws.rs.core.MultivaluedMap<String,String> |
getRequestParams() |
ProjectAwareRvdContext |
getRvdContext() |
RvdConfiguration |
getRvdSettings() |
Target |
getTarget() |
Map<String,String> |
getVariables() |
String |
interpret() |
String |
interpret(String targetParam,
RcmlResponse rcmlModel,
Step prependStep,
Target originTarget) |
String |
moduleUrl(String moduleName)
Build a relative url to the named module
|
static String |
nameModuleRequestParam(String name) |
static String |
nameStickyRequestParam(String name) |
static Target |
parseTarget(String targetParam) |
String |
populateVariables(String sourceText)
Processes a block of text typically used for
|
void |
putModuleVariable(String name,
String value) |
void |
putStickyVariable(String name,
String value)
Make 'local copies' of sticky_* parameters passed in the URL.
|
void |
putVariable(String name,
String value) |
static String |
rcmlOnException() |
void |
setAppName(String appName) |
void |
setContextPath(String contextPath) |
void |
setProjectLogger(ProjectLogger projectLogger) |
void |
setRvdSettings(RvdConfiguration rvdSettings) |
void |
setTarget(Target target) |
void |
setVariables(Map<String,String> variables) |
public Interpreter(ProjectAwareRvdContext rvdContext, String targetParam, String appName, javax.servlet.http.HttpServletRequest httpRequest, javax.ws.rs.core.MultivaluedMap<String,String> requestParams, WorkspaceStorage workspaceStorage, ApplicationContext applicationContext)
public ProjectLogger getProjectLogger()
public ProjectAwareRvdContext getRvdContext()
public void setProjectLogger(ProjectLogger projectLogger)
public void setRvdSettings(RvdConfiguration rvdSettings)
public static String rcmlOnException()
public RvdConfiguration getRvdSettings()
public String getAppName()
public ApplicationContext getApplicationContext()
public void setAppName(String appName)
public javax.servlet.http.HttpServletRequest getHttpRequest()
public Target getTarget()
public void setTarget(Target target)
public String interpret() throws RvdException
RvdExceptionpublic String getContextPath()
public void setContextPath(String contextPath)
public String interpret(String targetParam, RcmlResponse rcmlModel, Step prependStep, Target originTarget) throws InterpreterException, StorageException
InterpreterExceptionStorageExceptionpublic String evaluateExtractorExpression(ValueExtractor extractor, com.google.gson.JsonElement response_element) throws InvalidAccessOperationAction, BadExternalServiceResponse
public String populateVariables(String sourceText)
public String getNodeNameByLabel(String label)
label - public String moduleUrl(String moduleName)
moduleName - public String convertRecordingFileResourceHttp(String fileResource, javax.servlet.http.HttpServletRequest request) throws URISyntaxException
fileResource - URISyntaxExceptionpublic void putStickyVariable(String name, String value)
public void clearModuleVariables()
Copyright © 2016. All Rights Reserved.