public abstract class RestAdapter extends org.glassfish.grizzly.http.server.HttpHandler implements ProxiedRestAdapter, org.glassfish.hk2.api.PostConstruct
| Modifier and Type | Class and Description |
|---|---|
static class |
RestAdapter.SubjectReferenceFactory |
| Modifier and Type | Field and Description |
|---|---|
protected AdminAccessController |
adminAuthenticator |
protected static String |
COOKIE_GF_REST_UID |
protected static String |
COOKIE_REST_TOKEN |
protected org.glassfish.hk2.api.ServiceLocator |
habitat |
protected static String |
HEADER_ACCEPT |
protected static String |
HEADER_AUTHENTICATE |
protected static String |
HEADER_USER_AGENT |
protected static String |
HEADER_X_AUTH_TOKEN |
protected static LocalStringManagerImpl |
localStrings |
protected ServerContext |
sc |
protected ServerEnvironment |
serverEnvironment |
| Modifier | Constructor and Description |
|---|---|
protected |
RestAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected JerseyContainer |
exposeContext()
dynamically load the class that contains all references to Jersey APIs
so that Jersey is not loaded when the RestAdapter is loaded at boot time
gain a few 100 millis at GlassFish startup time
|
protected Set<? extends org.glassfish.hk2.utilities.Binder> |
getAdditionalBinders() |
protected String |
getContextRoot() |
org.glassfish.grizzly.http.server.HttpHandler |
getHttpService() |
protected JerseyContainer |
getJerseyContainer(org.glassfish.jersey.server.ResourceConfig rc) |
protected RestResourceProvider |
getRestResourceProvider() |
void |
postConstruct() |
void |
service(org.glassfish.grizzly.http.server.Request req,
org.glassfish.grizzly.http.server.Response res) |
protected void |
setRestResourceProvider(RestResourceProvider rrp) |
destroy, getErrorPageGenerator, getName, getRequestExecutorProvider, getRequestURIEncoding, getSessionCookieName, getSessionManager, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, start, updatePathsprotected static final String COOKIE_REST_TOKEN
protected static final String COOKIE_GF_REST_UID
protected static final String HEADER_ACCEPT
protected static final String HEADER_USER_AGENT
protected static final String HEADER_X_AUTH_TOKEN
protected static final String HEADER_AUTHENTICATE
protected static final LocalStringManagerImpl localStrings
@Inject protected org.glassfish.hk2.api.ServiceLocator habitat
@Inject protected ServerContext sc
@Inject protected ServerEnvironment serverEnvironment
@Inject @Optional protected AdminAccessController adminAuthenticator
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructprotected String getContextRoot()
public org.glassfish.grizzly.http.server.HttpHandler getHttpService()
getHttpService in interface ProxiedRestAdapterpublic void service(org.glassfish.grizzly.http.server.Request req,
org.glassfish.grizzly.http.server.Response res)
service in class org.glassfish.grizzly.http.server.HttpHandlerprotected RestResourceProvider getRestResourceProvider()
protected void setRestResourceProvider(RestResourceProvider rrp)
protected Set<? extends org.glassfish.hk2.utilities.Binder> getAdditionalBinders()
protected JerseyContainer exposeContext() throws EndpointRegistrationException
EndpointRegistrationExceptionprotected JerseyContainer getJerseyContainer(org.glassfish.jersey.server.ResourceConfig rc)
Copyright © 2017. All rights reserved.