public interface Connector
connector
,
protocol
, remoteAddr
,
response
, scheme
,
secure
, serverName
,
serverPort
and stream
properties MUST be set. The contentLength
and contentType
properties are also generally set.
method
, queryString
,
requestedSessionCookie
,
requestedSessionId
, requestedSessionURL
,
requestURI
, and secure
properties
MUST be set. In addition, the various addXxx
methods must be called to record the presence of cookies, headers,
and locales in the original request.
connector
, request
,
and stream
properties MUST be set.
invoke()
method of the selected Container,
passing the initialized Request and Response instances as arguments.
Modifier and Type | Method and Description |
---|---|
Request |
createRequest()
Create (or allocate) and return a Request object suitable for
specifying the contents of a Request to the responsible Container.
|
Response |
createResponse()
Create (or allocate) and return a Response object suitable for
receiving the contents of a Response from the responsible Container.
|
boolean |
getAuthPassthroughEnabled()
Returns the value of this connector's authPassthroughEnabled flag.
|
X509Certificate[] |
getCertificates(Request request)
Get the underlying WebContainer certificate for the request
|
Container |
getContainer()
Return the Container used for processing requests received by this
Connector.
|
String |
getDefaultHost()
Gets the default host of this Connector.
|
boolean |
getEnableLookups()
Return the "enable DNS lookups" flag.
|
ServerSocketFactory |
getFactory()
Return the server socket factory used by this Container.
|
org.glassfish.grizzly.http.server.HttpHandler |
getHandler()
Get the
HttpHandler used by this connector. |
String |
getInfo()
Return descriptive information about this Connector implementation.
|
String |
getJvmRoute()
Get the jvmRoute associated with this connector.
|
int |
getMaxSavePostSize()
Return the maximum size of a POST which will be saved by the container
during authentication.
|
String |
getName()
Gets the name of this Connector.
|
ProxyHandler |
getProxyHandler()
Gets the ProxyHandler instance associated with this CoyoteConnector.
|
int |
getRedirectPort()
Return the port number to which a request should be redirected if
it comes in on a non-SSL port and is subject to a security constraint
with a transport guarantee that requires SSL.
|
String |
getScheme()
Return the scheme that will be assigned to requests received
through this connector.
|
boolean |
getSecure()
Return the secure connection flag that will be assigned to requests
received through this connector.
|
Service |
getService()
Return the
Service with which we are associated (if any). |
String |
getURIEncoding()
Get the encoding to be used for byte<-->char conversion for
data sent/received via this Connector
|
void |
initialize()
Invoke a pre-startup initialization.
|
void |
setAuthPassthroughEnabled(boolean authPassthroughEnabled)
Sets the value of this connector's authPassthroughEnabled flag.
|
void |
setContainer(Container container)
Set the Container used for processing requests received by this
Connector.
|
void |
setDefaultHost(String defaultHost)
Sets the default host for this Connector.
|
void |
setEnableLookups(boolean enableLookups)
Set the "enable DNS lookups" flag.
|
void |
setFactory(ServerSocketFactory factory)
Set the server socket factory used by this Container.
|
void |
setHandler(org.glassfish.grizzly.http.server.HttpHandler adapter)
Set the
Adapter used by this connector. |
void |
setJvmRoute(String jvmRoute)
Sets the jvmRoute associated with this connector.
|
void |
setMaxPostSize(int maxPostSize)
Set the maximum size of a POST which will be automatically
parsed by the container.
|
void |
setProxyHandler(ProxyHandler proxyHandler)
Sets the ProxyHandler implementation for this CoyoteConnector to use.
|
void |
setRedirectPort(int redirectPort)
Set the redirect port number.
|
void |
setScheme(String scheme)
Set the scheme that will be assigned to requests received through
this connector.
|
void |
setSecure(boolean secure)
Set the secure connection flag that will be assigned to requests
received through this connector.
|
void |
setService(Service service)
Set the
Service with which we are associated (if any). |
void |
setURIEncoding(String encoding)
Set the encoding to be used for byte<-->char conversion for
data sent/received via this Connector
|
Container getContainer()
void setContainer(Container container)
container
- The new Container to useboolean getEnableLookups()
void setEnableLookups(boolean enableLookups)
enableLookups
- The new "enable DNS lookups" flag valueServerSocketFactory getFactory()
void setFactory(ServerSocketFactory factory)
factory
- The new server socket factoryString getInfo()
int getRedirectPort()
void setRedirectPort(int redirectPort)
redirectPort
- The redirect port number (non-SSL to SSL)String getScheme()
void setScheme(String scheme)
scheme
- The new schemeboolean getSecure()
void setSecure(boolean secure)
secure
- The new secure connection flagService getService()
Service
with which we are associated (if any).void setService(Service service)
Service
with which we are associated (if any).service
- The service that owns this Enginevoid setDefaultHost(String defaultHost)
defaultHost
- The default host for this ConnectorString getDefaultHost()
boolean getAuthPassthroughEnabled()
void setAuthPassthroughEnabled(boolean authPassthroughEnabled)
authPassthroughEnabled
- true if this connector is receiving its
requests from a trusted intermediate server, false otherwiseProxyHandler getProxyHandler()
void setProxyHandler(ProxyHandler proxyHandler)
proxyHandler
- ProxyHandler instance to useString getName()
void setJvmRoute(String jvmRoute)
String getJvmRoute()
Request createRequest()
Response createResponse()
void initialize() throws LifecycleException
LifecycleException
- If this server was already initialized.X509Certificate[] getCertificates(Request request)
String getURIEncoding()
void setURIEncoding(String encoding)
void setHandler(org.glassfish.grizzly.http.server.HttpHandler adapter)
Adapter
used by this connector.org.glassfish.grizzly.http.server.HttpHandler getHandler()
HttpHandler
used by this connector.void setMaxPostSize(int maxPostSize)
maxPostSize
- The new maximum size in bytes of a POST which will
be automatically parsed by the containerint getMaxSavePostSize()
Copyright © 2018. All rights reserved.