|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RestAction
Invokes a REST service with support for SSL encryption, security certificates, multipart messages, and other REST capabilities.
The REST Action returns its result in the flow context variable "RESULT". The following table contains more information on accessing and using the result.Flow Context Variable | Field | Java Type | Description |
---|---|---|---|
RESULT | responseCode | int | The HTTP response code from the server after invoking the REST service. |
RESULT | responseStatus | java.lang.String | The HTTP response status from the server after invoking the REST service. |
RESULT | result | java.lang.Object | The object returned from the REST service call. |
RESULT | type | java.lang.String | The HTTP media type of the object contained in the "result" field. |
Nested Class Summary | |
---|---|
static class |
RestAction.RestActionResult
The response from the REST service. |
Method Summary | |
---|---|
RestActionType |
getActionType()
Returns the kind of HTTP action to perform against the REST service. |
java.net.URL |
getBaseUrl()
Returns the base URL that defines how the REST service is accessed and used. |
java.lang.String |
getBaseUrlAsString()
Returns the base URL that defines how the REST service is accessed and used. |
java.util.Properties |
getBodyParts()
Returns the optional body parts, commonly called file attachments, that are set in a multipart HTTP request to the REST service. |
java.lang.String |
getContentType()
Returns the optional "Content-Type" header in the HTTP request to the REST service. |
java.util.Properties |
getHeaders()
Returns the optional headers set in the HTTP request to the REST service. |
java.lang.String |
getKeystoreFilename()
Returns the optional filename that references a keystore on the file system; a keystore contains a collection of private keys and associated certificates. |
java.lang.String |
getKeystorePassword()
Returns the password for the keystore. |
java.util.Properties |
getNamespaces()
Returns the optional XML namespaces for resolving an XPath query. |
java.lang.String |
getPassword()
Returns the optional password used to access the REST service, assuming the service is secured with basic authentication. |
java.util.Properties |
getQueryParameters()
Returns the optional input string data that are used as query parameters to the REST service. |
java.lang.Object |
getRequestEntity()
Returns the optional request entity to be sent with an HTTP POST or PUT action. |
java.lang.Class |
getResponseType()
Returns the type of the response from the REST service. |
java.lang.String |
getResponseTypeAsString()
Returns the type of the response from the REST service. |
java.lang.String |
getTruststoreFilename()
Returns the optional filename that references a truststore on the file system; a truststore contains only the certificates trusted by the client. |
java.lang.String |
getTruststorePassword()
Returns the password for the truststore. |
java.lang.String |
getUsername()
Returns the optional username used to access the REST service, assuming the service is secured with basic authentication. |
java.lang.String |
getXpathExpression()
Returns the optional XPath expression used to query the response from the REST service. |
java.lang.Class |
getXpathResponseType()
Returns the optional type of the response from an XPath query. |
java.lang.String |
getXpathResponseTypeAsString()
Returns the optional type of the response from an XPath query. |
boolean |
isInteractiveAuthenticationEnabled()
Indicates that the client should interactively prompt for credentials should it receive a 401 response. |
boolean |
isPreemptiveAuthenticationEnabled()
Indicates that the client should send an authentication request even before the server gives a 401 response. |
boolean |
isSslEnabled()
Indicates that the client should use SSL for communication. |
void |
setActionType(RestActionType actionType)
Sets the kind of HTTP action to perform against the REST service. |
void |
setBaseUrl(java.net.URL baseUrl)
Sets the base URL that defines how the REST service is accessed and used. |
void |
setBaseUrlAsString(java.lang.String baseUrl)
Sets the base URL that defines how the REST service is accessed and used. |
void |
setBodyParts(java.util.Properties bodyParts)
Sets the body parts, commonly called file attachments, that are set in a multipart HTTP request to the REST service. |
void |
setContentType(java.lang.String contentType)
Sets the optional "Content-Type" header in the HTTP request to the REST service. |
void |
setHeaders(java.util.Properties headers)
Sets the optional headers set in the HTTP request to the REST service. |
void |
setInteractiveAuthenticationEnabled(boolean enabled)
Sets whether the client should interactively prompt for credentials should it receive a 401 response. |
void |
setKeystoreFilename(java.lang.String keyStore)
Sets the optional filename that references a keystore on the file system; a keystore contains a collection of private keys and associated certificates. |
void |
setKeystorePassword(java.lang.String keystorePassword)
Sets the password for the keystore. |
void |
setNamespaces(java.util.Properties namespaces)
Sets the optional XML namespaces for resolving an XPath query. |
void |
setPassword(java.lang.String password)
Sets the optional password used to access the REST service, assuming the service is secured with basic authentication. |
void |
setPreemptiveAuthenticationEnabled(boolean enabled)
Sets whether the client should send an authentication request even before the server gives a 401 response. |
void |
setQueryParameters(java.util.Properties queryParameters)
Sets the optional input string data that are used as query parameters to the REST service. |
void |
setRequestEntity(java.lang.Object requestEntity)
Sets the optional request entity to be sent with an HTTP POST or PUT action. |
void |
setResponseType(java.lang.Class responseType)
Sets the type of the response from the REST service. |
void |
setResponseTypeAsString(java.lang.String responseType)
Sets the type of the response from the REST service. |
void |
setSslEnabled(boolean sslEnabled)
Sets whether the client should use SSL for communication. |
void |
setTruststoreFilename(java.lang.String trustStore)
Sets the optional filename that references a truststore on the file system; a truststore contains only the certificates trusted by the client. |
void |
setTruststorePassword(java.lang.String truststorePassword)
Sets the password for the truststore. |
void |
setUsername(java.lang.String username)
Sets the optional username used to access the REST service, assuming the service is secured with basic authentication. |
void |
setXpathExpression(java.lang.String xpathExpression)
Sets the optional XPath expression used to query the response from the REST service. |
void |
setXpathResponseType(java.lang.Class xpathResponseType)
Sets the optional type of the response from an XPath query. |
void |
setXpathResponseTypeAsString(java.lang.String xpathResponseType)
Sets the optional type of the response from an XPath query. |
Methods inherited from interface flux.runtimedatamap.RuntimeDataMap |
---|
getRuntimeDataMap, setRuntimeDataMap |
Method Detail |
---|
RestActionType getActionType()
java.net.URL getBaseUrl() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- If the URL to be returned is invalid.getBaseUrlAsString()
java.lang.String getBaseUrlAsString()
getBaseUrl()
java.util.Properties getBodyParts()
java.lang.String getContentType()
java.util.Properties getHeaders()
java.lang.String getKeystoreFilename()
java.lang.String getKeystorePassword()
java.util.Properties getNamespaces()
java.lang.String getPassword()
java.util.Properties getQueryParameters()
java.lang.String getUsername()
java.lang.Object getRequestEntity()
java.lang.Class getResponseType() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- If the Java class to be returned cannot be loaded into the JVM.getResponseTypeAsString()
java.lang.String getResponseTypeAsString()
getResponseType()
java.lang.String getTruststoreFilename()
java.lang.String getTruststorePassword()
java.lang.String getXpathExpression()
java.lang.Class getXpathResponseType() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- If the Java class to be returned cannot be loaded into the JVM.getXpathResponseTypeAsString()
java.lang.String getXpathResponseTypeAsString()
getXpathResponseType()
boolean isInteractiveAuthenticationEnabled()
boolean isPreemptiveAuthenticationEnabled()
boolean isSslEnabled()
void setActionType(RestActionType actionType)
actionType
- The kind of HTTP action to perform against the REST service. Cannot be null.
java.lang.IllegalArgumentException
- If actionType is null.void setBaseUrl(java.net.URL baseUrl)
baseUrl
- The base URL that defines how the REST service is accessed and used.setBaseUrlAsString(String)
void setBaseUrlAsString(java.lang.String baseUrl)
baseUrl
- The base URL that defines how the REST service is accessed and used.setBaseUrl(URL)
void setBodyParts(java.util.Properties bodyParts)
bodyParts
- The body parts, commonly called file attachments, that are set in a multipart HTTP request to the
REST service.void setContentType(java.lang.String contentType)
contentType
- The optional "Content-Type" header in the HTTP request to the REST service.void setHeaders(java.util.Properties headers)
headers
- The optional headers set in the HTTP request to the REST service.void setInteractiveAuthenticationEnabled(boolean enabled)
enabled
- Whether the client should interactively prompt for credentials should it receive a 401 response.void setKeystoreFilename(java.lang.String keyStore)
keyStore
- The optional keystore filename.void setKeystorePassword(java.lang.String keystorePassword)
keystorePassword
- The password for the keystore.void setNamespaces(java.util.Properties namespaces)
namespaces
- The optional XML namespaces for resolving an XPath query.void setPassword(java.lang.String password)
password
- The optional password used to access the REST service, assuming the service is secured with basic
authentication.void setPreemptiveAuthenticationEnabled(boolean enabled)
enabled
- Whether the client should send an authentication request even before the server gives a 401
response.void setQueryParameters(java.util.Properties queryParameters)
queryParameters
- The input string data that are used as query parameters to the REST service.void setRequestEntity(java.lang.Object requestEntity)
requestEntity
- The request entity to be sent with an HTTP POST or PUT action.void setResponseType(java.lang.Class responseType)
responseType
- The type of the response from the REST service.setResponseTypeAsString(String)
void setResponseTypeAsString(java.lang.String responseType)
responseType
- The type of the response from the REST service.setResponseType(Class)
void setSslEnabled(boolean sslEnabled)
sslEnabled
- Whether the client should use SSL for communication.void setTruststoreFilename(java.lang.String trustStore)
trustStore
- The optional truststore filename.void setTruststorePassword(java.lang.String truststorePassword)
truststorePassword
- The password for the truststore.void setUsername(java.lang.String username)
username
- The optional username used to access the REST service, assuming the service is secured with basic
authentication.void setXpathExpression(java.lang.String xpathExpression)
xpathExpression
- The optional XPath expression used to query the response from the REST service.void setXpathResponseType(java.lang.Class xpathResponseType)
xpathResponseType
- The optional type of the response from an XPath query.setXpathResponseTypeAsString(String)
void setXpathResponseTypeAsString(java.lang.String xpathResponseType)
xpathResponseType
- The optional type of the response from an XPath query.setXpathResponseType(Class)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |