Package io.gravitee.gateway.api
Interface ExecutionContext
-
- All Known Subinterfaces:
MutableExecutionContext
- All Known Implementing Classes:
SimpleExecutionContext
public interface ExecutionContext- Author:
- David BRASSELY (david.brassely at graviteesource.com), Azize ELAMRANI (azize.elamrani at graviteesource.com), Nicolas GERAUD (nicolas.geraud at graviteesource.com), GraviteeSource Team
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_APIstatic StringATTR_API_DEPLOYED_ATstatic StringATTR_APPLICATIONstatic StringATTR_CONTEXT_PATHstatic StringATTR_ENVIRONMENTstatic StringATTR_FAILURE_ATTRIBUTEstatic StringATTR_INVOKERstatic StringATTR_ORGANIZATIONstatic StringATTR_PLANstatic StringATTR_PREFIXstatic StringATTR_QUOTA_COUNTstatic StringATTR_QUOTA_LIMITstatic StringATTR_QUOTA_REMAININGstatic StringATTR_QUOTA_RESET_TIMEstatic StringATTR_REQUEST_ENDPOINTstatic StringATTR_REQUEST_METHODstatic StringATTR_RESOLVED_PATHstatic StringATTR_SUBSCRIPTION_IDstatic StringATTR_USERstatic StringATTR_USER_ROLES
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetAttribute(String name)Returns the value of the named attribute as an Object, ornullif no attribute of the given name exists.Enumeration<String>getAttributeNames()Returns an Enumeration containing the names of the attributes available to this request.Map<String,Object>getAttributes()<T> TgetComponent(Class<T> componentClass)io.gravitee.el.TemplateEnginegetTemplateEngine()io.gravitee.tracing.api.TracergetTracer()voidremoveAttribute(String name)Removes an attribute from this request.Requestrequest()Responseresponse()voidsetAttribute(String name, Object value)Stores an attribute in this request.
-
-
-
Field Detail
-
ATTR_PREFIX
static final String ATTR_PREFIX
- See Also:
- Constant Field Values
-
ATTR_CONTEXT_PATH
static final String ATTR_CONTEXT_PATH
- See Also:
- Constant Field Values
-
ATTR_RESOLVED_PATH
static final String ATTR_RESOLVED_PATH
- See Also:
- Constant Field Values
-
ATTR_APPLICATION
static final String ATTR_APPLICATION
- See Also:
- Constant Field Values
-
ATTR_API
static final String ATTR_API
- See Also:
- Constant Field Values
-
ATTR_API_DEPLOYED_AT
static final String ATTR_API_DEPLOYED_AT
- See Also:
- Constant Field Values
-
ATTR_SUBSCRIPTION_ID
static final String ATTR_SUBSCRIPTION_ID
- See Also:
- Constant Field Values
-
ATTR_PLAN
static final String ATTR_PLAN
- See Also:
- Constant Field Values
-
ATTR_REQUEST_METHOD
static final String ATTR_REQUEST_METHOD
- See Also:
- Constant Field Values
-
ATTR_REQUEST_ENDPOINT
static final String ATTR_REQUEST_ENDPOINT
- See Also:
- Constant Field Values
-
ATTR_INVOKER
static final String ATTR_INVOKER
- See Also:
- Constant Field Values
-
ATTR_QUOTA_COUNT
static final String ATTR_QUOTA_COUNT
- See Also:
- Constant Field Values
-
ATTR_QUOTA_REMAINING
static final String ATTR_QUOTA_REMAINING
- See Also:
- Constant Field Values
-
ATTR_QUOTA_LIMIT
static final String ATTR_QUOTA_LIMIT
- See Also:
- Constant Field Values
-
ATTR_QUOTA_RESET_TIME
static final String ATTR_QUOTA_RESET_TIME
- See Also:
- Constant Field Values
-
ATTR_USER
static final String ATTR_USER
- See Also:
- Constant Field Values
-
ATTR_USER_ROLES
static final String ATTR_USER_ROLES
- See Also:
- Constant Field Values
-
ATTR_ORGANIZATION
static final String ATTR_ORGANIZATION
- See Also:
- Constant Field Values
-
ATTR_ENVIRONMENT
static final String ATTR_ENVIRONMENT
- See Also:
- Constant Field Values
-
ATTR_FAILURE_ATTRIBUTE
static final String ATTR_FAILURE_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
request
Request request()
-
response
Response response()
-
getComponent
<T> T getComponent(Class<T> componentClass)
-
setAttribute
void setAttribute(String name, Object value)
Stores an attribute in this request. Attributes are reset between requests.- Parameters:
name- a String specifying the name of the attributevalue- the Object to be stored
-
removeAttribute
void removeAttribute(String name)
Removes an attribute from this request. This method is not generally needed as attributes only persist as long as the request is being handled.- Parameters:
name- a String specifying the name of the attribute to remove
-
getAttribute
Object getAttribute(String name)
Returns the value of the named attribute as an Object, ornullif no attribute of the given name exists.- Parameters:
name- a String specifying the name of the attribute- Returns:
- an Object containing the value of the attribute, or null if the attribute does not exist
-
getAttributeNames
Enumeration<String> getAttributeNames()
Returns an Enumeration containing the names of the attributes available to this request. This method returns an empty Enumeration if the request has no attributes available to it.- Returns:
- an Enumeration of strings containing the names of the request's attributes
-
getTemplateEngine
io.gravitee.el.TemplateEngine getTemplateEngine()
-
getTracer
io.gravitee.tracing.api.Tracer getTracer()
-
-