public interface ApplicationContext extends javax.ws.rs.core.UriInfo, InitialProperties
| Modifier and Type | Method and Description |
|---|---|
void |
addMatchedResource(Object resource)
Add ancestor resource, according to JSR-311:
Entries are ordered according in reverse request URI matching order, with the root resource last.
|
void |
addMatchedURI(String uri)
Add ancestor resource, according to JSR-311:
Entries are ordered in reverse request URI matching order, with the root resource URI last.
|
javax.ws.rs.core.Application |
getApplication() |
Map<String,Object> |
getAttributes() |
GenericContainerRequest |
getContainerRequest() |
GenericContainerResponse |
getContainerResponse() |
DependencySupplier |
getDependencySupplier() |
EverrestConfiguration |
getEverrestConfiguration() |
javax.ws.rs.core.HttpHeaders |
getHttpHeaders() |
InitialProperties |
getInitialProperties() |
MethodInvoker |
getMethodInvoker(GenericMethodResource methodDescriptor) |
List<String> |
getParameterValues()
Should be used to pass template values in context by using returned list in matching to @see
UriPattern.match(String, List). |
ProviderBinder |
getProviders() |
javax.ws.rs.core.Request |
getRequest() |
javax.ws.rs.core.SecurityContext |
getSecurityContext() |
javax.ws.rs.core.UriInfo |
getUriInfo() |
boolean |
isAsynchronous() |
void |
setDependencySupplier(DependencySupplier depInjector) |
void |
setParameterNames(List<String> parameterNames)
Pass in context list of path template parameters @see
UriPattern. |
void |
setProviders(ProviderBinder providers) |
getAbsolutePath, getAbsolutePathBuilder, getBaseUri, getBaseUriBuilder, getMatchedResources, getMatchedURIs, getMatchedURIs, getPath, getPath, getPathParameters, getPathParameters, getPathSegments, getPathSegments, getQueryParameters, getQueryParameters, getRequestUri, getRequestUriBuilder, relativize, resolvegetProperties, getProperty, setPropertyvoid addMatchedResource(Object resource)
Entries are ordered according in reverse request URI matching order, with the root resource last.
So add each new resource at the begin of list.resource - the resource e. g. resource class, sub-resource method or sub-resource locator.void addMatchedURI(String uri)
Entries are ordered in reverse request URI matching order, with the root resource URI last.
So add each new URI at the begin of list.uri - the partial part of that matched to resource class, sub-resource method or sub-resource locator.GenericContainerRequest getContainerRequest()
GenericContainerRequestGenericContainerResponse getContainerResponse()
GenericContainerResponseDependencySupplier getDependencySupplier()
DependencySuppliervoid setDependencySupplier(DependencySupplier depInjector)
depInjector - DependencySupplierjavax.ws.rs.core.HttpHeaders getHttpHeaders()
HttpHeadersInitialProperties getInitialProperties()
InitialPropertiesMethodInvoker getMethodInvoker(GenericMethodResource methodDescriptor)
methodDescriptor - method descriptorList<String> getParameterValues()
UriPattern.match(String, List). List will be cleared during matching.void setParameterNames(List<String> parameterNames)
UriPattern.parameterNames - list of templates parametersProviderBinder getProviders()
ProviderBinderProvidersvoid setProviders(ProviderBinder providers)
providers - ProviderBinderjavax.ws.rs.core.Request getRequest()
Requestjavax.ws.rs.core.SecurityContext getSecurityContext()
SecurityContextjavax.ws.rs.core.UriInfo getUriInfo()
UriInfoboolean isAsynchronous()
true if request is asynchronous and false otherwise,javax.ws.rs.core.Application getApplication()
EverrestConfiguration getEverrestConfiguration()
Copyright © 2015. All rights reserved.