public interface HttpContext
Modifier and Type | Method and Description |
---|---|
ExternalCalloutBuilder |
createCallout()
Creates an "in-chain" callout that enables a callout within an action chain execution to perform a
RESTful WebService invocation that could, for instance, look up profile data.
|
ReviveContext |
discontinueActionChain()
Discontinue action flow.
|
void |
forceResponse()
This will force whatever values set on the clientResponse to be returned to the client, skipping the rest of the
request and response chain.
|
ApiContext |
getApiContext()
Retrieves the runtime API context.
|
ApplicationContext |
getAppContext()
Retrieve the application context.
|
Object |
getAttribute(String id)
Retrieves the object based on an I.
|
HttpRequest |
getClientRequest()
Gets the request between the Client and the Dynamic API Framework.
|
ResponseBuilder |
getClientResponse()
Allows actions to affect the response back to the application.
|
CalloutBuilder |
getSouthboundCallout()
Retrieves the network facing callout, which is the "proxying" request to the server.
|
HttpResponse |
getSouthboundResponse()
Gets the response from the network (readonly).
|
default boolean |
isInternalError()
Gets it is internal error when communicate with the back-end service.
|
boolean |
isRequest()
Returns a request or response to the direction.
|
void |
setAttribute(String id,
Object o)
Allows the storage of objects between invocations in the action chain;
however, objects will not be stored between request and response.
|
String |
stringSubstitute(String s)
Helper method that parses the string and exchanges the syntax ${attribute} to whatever that attribute is.
|
HttpRequest getClientRequest()
HttpResponse getSouthboundResponse()
void setAttribute(String id, Object o)
id
- The id of the object to be storedo
- The object to be storedObject getAttribute(String id)
id
- The ID to lookupCalloutBuilder getSouthboundCallout()
ResponseBuilder getClientResponse()
ExternalCalloutBuilder createCallout()
ApiContext getApiContext()
String stringSubstitute(String s) throws ActionProcessingError
s
- The string which includes or does not include the ${parameter}ActionProcessingError
- if the attribute could not be found an ActionProcessingError is thrown.boolean isRequest()
ReviveContext discontinueActionChain()
void forceResponse()
ApplicationContext getAppContext()
default boolean isInternalError()