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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringSkip security chain isn't prefixed to avoid breaking code where this constant isn't used.static final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) Returns the value of the named attribute as an Object, ornullif no attribute of the given name exists.Returns an Enumeration containing the names of the attributes available to this request.<T> TgetComponent(Class<T> componentClass) io.gravitee.el.TemplateEnginevoidremoveAttribute(String name) Removes an attribute from this request.request()response()voidsetAttribute(String name, Object value) Stores an attribute in this request.
-
Field Details
-
ATTR_PREFIX
- See Also:
-
ATTR_CONTEXT_PATH
- See Also:
-
ATTR_RESOLVED_PATH
- See Also:
-
ATTR_APPLICATION
- See Also:
-
ATTR_API
- See Also:
-
ATTR_API_DEPLOYED_AT
- See Also:
-
ATTR_SUBSCRIPTION_ID
- See Also:
-
ATTR_PLAN
- See Also:
-
ATTR_REQUEST_METHOD
- See Also:
-
ATTR_REQUEST_ENDPOINT
- See Also:
-
ATTR_INVOKER
- See Also:
-
ATTR_QUOTA_COUNT
- See Also:
-
ATTR_QUOTA_REMAINING
- See Also:
-
ATTR_QUOTA_LIMIT
- See Also:
-
ATTR_QUOTA_RESET_TIME
- See Also:
-
ATTR_USER
- See Also:
-
ATTR_USER_ROLES
- See Also:
-
ATTR_ORGANIZATION
- See Also:
-
ATTR_ENVIRONMENT
- See Also:
-
ATTR_FAILURE_ATTRIBUTE
- See Also:
-
ATTR_CLIENT_IDENTIFIER
- See Also:
-
ATTR_SECURITY_SKIP
Skip security chain isn't prefixed to avoid breaking code where this constant isn't used.- See Also:
-
ATTR_INVOKER_SKIP
- See Also:
-
ATTR_VALIDATE_SUBSCRIPTION
- See Also:
-
ATTR_MAPPED_PATH
- See Also:
-
-
Method Details
-
request
Request request() -
response
Response response() -
getComponent
-
setAttribute
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
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
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
-
getAttributes
-
getTemplateEngine
io.gravitee.el.TemplateEngine getTemplateEngine() -
getTracer
Tracer getTracer()
-