| Modifier and Type | Field and Description |
|---|---|
| protected Adapter | adapter
Coyote adapter. |
| protected boolean | allowBackslash
If this is |
| protected boolean | allowTrace
Do we allow TRACE ? |
| protected long | asyncTimeout
Default timeout for asynchronous requests (ms). |
| protected final String | configuredProtocol
Name of the protocol that was configured. |
| protected boolean | discardFacades
The flag that controls recycling of the facades of the request processing objects. |
| protected boolean | enableLookups
The "enable DNS lookups" flag for this Connector. |
| private EncodedSolidusHandling | encodedSolidusHandling
The behavior when an encoded solidus (slash) is submitted. |
| protected boolean | enforceEncodingInGetWriter
If this is |
| public static final String | |
| private static final Log | |
| private int | maxCookieCount
The maximum number of cookies permitted for a request. |
| protected int | maxParameterCount
The maximum number of parameters (GET plus POST) which will be automatically parsed by the container. |
| protected int | maxPostSize
Maximum size of a POST which will be automatically parsed by the container. |
| protected int | maxSavePostSize
Maximum size of a POST which will be saved by the container during authentication. |
| protected String | parseBodyMethods
Comma-separated list of HTTP methods that will be parsed according to POST-style rules for application/x-www-form-urlencoded request bodies. |
| protected HashSet | parseBodyMethodsSet
A Set of methods determined by |
| protected final ProtocolHandler | protocolHandler
Coyote protocol handler. |
| protected final String | protocolHandlerClassName
Coyote Protocol handler class name. |
| protected String | proxyName
The server name to which we should pretend requests to this Connector were directed. |
| protected int | proxyPort
The server port to which we should pretend requests to this Connector were directed. |
| protected int | redirectPort
The redirect port for non-SSL to SSL redirects. |
| private boolean | |
| protected String | scheme
The request scheme that will be set on all requests received through this connector. |
| protected boolean | secure
The secure connection flag that will be set on all requests received through this connector. |
| protected Service | service
The |
| protected static final StringManager | sm
The string manager for this package.
|
| private Charset | uriCharset
The URI encoding in use. |
| protected boolean | useBodyEncodingForURI
URI encoding as body. |
| protected boolean | useIPVHosts
Flag to use IP-based virtual hosting. |
| protected boolean | xpoweredBy
Is generation of X-Powered-By response header enabled/disabled? |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| protected String | |
| public Request | Returns: a new Servlet request objectCreate (or allocate) and return a Request object suitable for specifying the contents of a Request to the responsible Container. |
| public Response | Returns: a new Servlet response objectCreate (or allocate) and return a Response object suitable for receiving the contents of a Response from the responsible Container. |
| protected void | destroyInternal()
Overrides org. Sub-classes wishing to perform additional clean-up should override this method, ensuring that super.destroyInternal() is the last call in the overriding method. |
| public SSLHostConfig[] | |
| public UpgradeProtocol[] | |
| public boolean | Returns: true if backslash characters are allowed in URLs. Default value is false.
|
| public boolean | |
| public long | |
| public boolean | Returns: true if the object facades are discarded, either when the discardFacades value is
true or when the security manager is enabled.
|
| protected String | getDomainInternal()
Implements abstract org. Method implemented by sub-classes to identify the domain in which MBeans should be registered. |
| public boolean | |
| public String | |
| public EncodedSolidusHandling | |
| public boolean | Returns: true if a default character encoding will be set when calling Response.getWriter()
|
| public String | |
| public int | Returns: the port number on which this connector is listening to requests. If the special value forgetPort of zero is used then this method will report the actual port bound.
|
| public int | |
| public int | Returns: the maximum number of parameters (GET plus POST) that will be automatically parsed by the container. A value of less than 0 means no limit.
|
| public int | Returns: the maximum size of a POST which will be automatically parsed by the container.
|
| public int | Returns: the maximum size of a POST which will be saved by the container during authentication.
|
| protected String | getObjectNameKeyProperties()
Implements abstract org. Allow sub-classes to specify the key properties component of the
|
| public String | |
| public int | Returns: the port number on which this connector is configured to listen for requests. The special value of 0 means select a random free port when the socket is bound.
|
| public int | |
| public int | |
| public Object | Returns: the property valuethe property name name)Return a property from the protocol handler. |
| public String | |
| public ProtocolHandler | |
| public String | |
| public String | |
| public int | |
| public int | Returns: 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.
|
| public int | |
| public boolean | |
| public String | Returns: the scheme that will be assigned to requests received through this connector. Default value is "http".
|
| public boolean | Returns: the secure connection flag that will be assigned to requests received through this connector. Default value is "false".
|
| public Service | |
| public Charset | Returns: The Charset to use to convert raw URI bytes (after %nn decoding) to characters. This will never be null
|
| public String | Returns: the name of character encoding to be used for the URI using the original case.
|
| public boolean | |
| public boolean | |
| public boolean | Returns: true if generation of X-Powered-By response header is enabled, false otherwiseIndicates whether the generation of an X-Powered-By response header for Servlet-generated responses is enabled or disabled for this Connector. |
| protected void | initInternal()
Overrides org. Sub-classes wishing to perform additional initialization should override this method, ensuring that super.initInternal() is the first call in the overriding method. |
| protected boolean | |
| public void | |
| public void | |
| public void | |
| public void | setAllowTrace(boolean
The new allowTrace flag allowTrace)Set the allowTrace flag, to disable or enable the TRACE HTTP method. |
| public void | |
| public void | setDiscardFacades(boolean
the new value of the flag discardFacades)Set the recycling strategy for the object facades. |
| public void | setEnableLookups(boolean
The new "enable DNS lookups" flag value enableLookups)Set the "enable DNS lookups" flag. |
| public void | |
| public void | setEnforceEncodingInGetWriter(boolean
the new flag value enforceEncodingInGetWriter)Set the enforceEncodingInGetWriter flag. |
| public void | |
| public void | setMaxParameterCount(int
The new setting maxParameterCount)Set the maximum number of parameters (GET plus POST) that will be automatically parsed by the container. |
| public void | setMaxPostSize(int
The new maximum size in bytes of a POST which will be automatically parsed by the container maxPostSize)Set the maximum size of a POST which will be automatically parsed by the container. |
| public void | setMaxSavePostSize(int
The new maximum size in bytes of a POST which will be saved by the container during
authentication. maxSavePostSize)Set the maximum size of a POST which will be saved by the container during authentication. |
| public void | setParseBodyMethods(String
Comma separated list of HTTP method names methods)Set list of HTTP methods which should allow body parameter parsing. |
| public void | |
| public void | |
| public boolean | Returns: true if the property was successfully setthe property name name, String the property value value)Set a property on the protocol handler. |
| public void | setProxyName(String
The new proxy server name proxyName)Set the proxy server name for this Connector. |
| public void | |
| public void | setRedirectPort(int
The redirect port number (non-SSL to SSL) redirectPort)Set the redirect port number. |
| public void | |
| public void | |
| public void | setSecure(boolean
The new secure connection flag secure)Set the secure connection flag that will be assigned to requests received through this connector. |
| public void | setService(Service
The service that owns this Engine service)Set the |
| public void | setURIEncoding(String
The new URI character encoding. URIEncoding)Set the URI encoding to be used for the URI. |
| public void | setUseBodyEncodingForURI(boolean
The new value for the flag. useBodyEncodingForURI)Set if the entity body encoding should be used for the URI. |
| public void | setUseIPVHosts(boolean
true if Hosts are identified by IP, false if Hosts are identified by
name.Enable the use of IP-based virtual hosting. |
| public void | setXpoweredBy(boolean
true if generation of X-Powered-By response header is to be enabled, false otherwise xpoweredBy)Enables or disables the generation of an X-Powered-By header (with value Servlet/2.5) for all servlet-generated responses returned by this Connector. |
| protected void | startInternal()
Implements abstract org. Begin processing requests via this Connector. |
| protected void | stopInternal()
Implements abstract org. Terminate processing requests via this Connector. |
| public String | toString()
Overrides java. Provide a useful toString() implementation as it may be used when logging Lifecycle errors to identify the component. |
| adapter | back to summary |
|---|---|
| protected Adapter adapter Coyote adapter. | |
| allowBackslash | back to summary |
|---|---|
| protected boolean allowBackslash If this is | |
| allowTrace | back to summary |
|---|---|
| protected boolean allowTrace Do we allow TRACE ? | |
| asyncTimeout | back to summary |
|---|---|
| protected long asyncTimeout Default timeout for asynchronous requests (ms). | |
| configuredProtocol | back to summary |
|---|---|
| protected final String configuredProtocol Name of the protocol that was configured. | |
| discardFacades | back to summary |
|---|---|
| protected boolean discardFacades The flag that controls recycling of the facades of the request processing objects. If set to | |
| enableLookups | back to summary |
|---|---|
| protected boolean enableLookups The "enable DNS lookups" flag for this Connector. | |
| encodedSolidusHandling | back to summary |
|---|---|
| private EncodedSolidusHandling encodedSolidusHandling The behavior when an encoded solidus (slash) is submitted. | |
| enforceEncodingInGetWriter | back to summary |
|---|---|
| protected boolean enforceEncodingInGetWriter If this is | |
| INTERNAL_EXECUTOR_NAME | back to summary |
|---|---|
| public static final String INTERNAL_EXECUTOR_NAME | |
| log | back to summary |
|---|---|
| private static final Log log | |
| maxCookieCount | back to summary |
|---|---|
| private int maxCookieCount The maximum number of cookies permitted for a request. Use a value less than zero for no limit. Defaults to 200. | |
| maxParameterCount | back to summary |
|---|---|
| protected int maxParameterCount The maximum number of parameters (GET plus POST) which will be automatically parsed by the container. 10000 by default. The default Tomcat server.xml configures a lower default of 1000. A value of less than 0 means no limit. | |
| maxPostSize | back to summary |
|---|---|
| protected int maxPostSize Maximum size of a POST which will be automatically parsed by the container. 2 MiB by default. | |
| maxSavePostSize | back to summary |
|---|---|
| protected int maxSavePostSize Maximum size of a POST which will be saved by the container during authentication. 4 KiB by default | |
| parseBodyMethods | back to summary |
|---|---|
| protected String parseBodyMethods Comma-separated list of HTTP methods that will be parsed according to POST-style rules for application/x-www-form-urlencoded request bodies. | |
| parseBodyMethodsSet | back to summary |
|---|---|
| protected HashSet<String> parseBodyMethodsSet A Set of methods determined by | |
| protocolHandler | back to summary |
|---|---|
| protected final ProtocolHandler protocolHandler Coyote protocol handler. | |
| protocolHandlerClassName | back to summary |
|---|---|
| protected final String protocolHandlerClassName Coyote Protocol handler class name. See | |
| proxyName | back to summary |
|---|---|
| protected String proxyName The server name to which we should pretend requests to this Connector were directed. This is useful when
operating Tomcat behind a proxy server, so that redirects get constructed accurately. If not specified, the
server name included in the | |
| proxyPort | back to summary |
|---|---|
| protected int proxyPort The server port to which we should pretend requests to this Connector were directed. This is useful when
operating Tomcat behind a proxy server, so that redirects get constructed accurately. If not specified, the port
number specified by the | |
| redirectPort | back to summary |
|---|---|
| protected int redirectPort The redirect port for non-SSL to SSL redirects. | |
| rejectSuspiciousURIs | back to summary |
|---|---|
| private boolean rejectSuspiciousURIs | |
| scheme | back to summary |
|---|---|
| protected String scheme The request scheme that will be set on all requests received through this connector. | |
| secure | back to summary |
|---|---|
| protected boolean secure The secure connection flag that will be set on all requests received through this connector. | |
| service | back to summary |
|---|---|
| protected Service service The | |
| sm | back to summary |
|---|---|
| protected static final StringManager sm Hides org. The string manager for this package. | |
| uriCharset | back to summary |
|---|---|
| private Charset uriCharset The URI encoding in use. | |
| useBodyEncodingForURI | back to summary |
|---|---|
| protected boolean useBodyEncodingForURI URI encoding as body. | |
| useIPVHosts | back to summary |
|---|---|
| protected boolean useIPVHosts Flag to use IP-based virtual hosting. | |
| xpoweredBy | back to summary |
|---|---|
| protected boolean xpoweredBy Is generation of X-Powered-By response header enabled/disabled? | |
| Connector | back to summary |
|---|---|
| public Connector() Defaults to using HTTP/1.1 NIO implementation. | |
| Connector | back to summary |
|---|---|
| public Connector(String protocol) | |
| Connector | back to summary |
|---|---|
| public Connector(ProtocolHandler protocolHandler) | |
| addSslHostConfig | back to summary |
|---|---|
| public void addSslHostConfig(SSLHostConfig sslHostConfig) | |
| addUpgradeProtocol | back to summary |
|---|---|
| public void addUpgradeProtocol(UpgradeProtocol upgradeProtocol) | |
| createObjectNameKeyProperties | back to summary |
|---|---|
| protected String createObjectNameKeyProperties(String type) | |
| createRequest | back to summary |
|---|---|
| public Request createRequest() Create (or allocate) and return a Request object suitable for specifying the contents of a Request to the responsible Container.
| |
| createResponse | back to summary |
|---|---|
| public Response createResponse() Create (or allocate) and return a Response object suitable for receiving the contents of a Response from the responsible Container.
| |
| destroyInternal | back to summary |
|---|---|
| protected void destroyInternal() throws LifecycleException Overrides org. Doc from org. Sub-classes wishing to perform additional clean-up should override this method, ensuring that super.destroyInternal() is the last call in the overriding method.
| |
| findSslHostConfigs | back to summary |
|---|---|
| public SSLHostConfig[] findSslHostConfigs() | |
| findUpgradeProtocols | back to summary |
|---|---|
| public UpgradeProtocol[] findUpgradeProtocols() | |
| getAllowBackslash | back to summary |
|---|---|
public boolean getAllowBackslash()
| |
| getAllowTrace | back to summary |
|---|---|
public boolean getAllowTrace()
| |
| getAsyncTimeout | back to summary |
|---|---|
public long getAsyncTimeout()
| |
| getDiscardFacades | back to summary |
|---|---|
public boolean getDiscardFacades()
| |
| getDomainInternal | back to summary |
|---|---|
| protected String getDomainInternal() Implements abstract org. Doc from org. Method implemented by sub-classes to identify the domain in which MBeans should be registered. | |
| getEnableLookups | back to summary |
|---|---|
public boolean getEnableLookups()
| |
| getEncodedSolidusHandling | back to summary |
|---|---|
| public String getEncodedSolidusHandling() | |
| getEncodedSolidusHandlingInternal | back to summary |
|---|---|
| public EncodedSolidusHandling getEncodedSolidusHandlingInternal() | |
| getEnforceEncodingInGetWriter | back to summary |
|---|---|
public boolean getEnforceEncodingInGetWriter()
| |
| getExecutorName | back to summary |
|---|---|
| public String getExecutorName() | |
| getLocalPort | back to summary |
|---|---|
public int getLocalPort()
| |
| getMaxCookieCount | back to summary |
|---|---|
| public int getMaxCookieCount() | |
| getMaxParameterCount | back to summary |
|---|---|
public int getMaxParameterCount()
| |
| getMaxPostSize | back to summary |
|---|---|
public int getMaxPostSize()
| |
| getMaxSavePostSize | back to summary |
|---|---|
public int getMaxSavePostSize()
| |
| getObjectNameKeyProperties | back to summary |
|---|---|
| protected String getObjectNameKeyProperties() Implements abstract org. Doc from org. Allow sub-classes to specify the key properties component of the
| |
| getParseBodyMethods | back to summary |
|---|---|
public String getParseBodyMethods()
| |
| getPort | back to summary |
|---|---|
public int getPort()
| |
| getPortOffset | back to summary |
|---|---|
| public int getPortOffset() | |
| getPortWithOffset | back to summary |
|---|---|
| public int getPortWithOffset() | |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String name) Return a property from the protocol handler. | |
| getProtocol | back to summary |
|---|---|
public String getProtocol()
| |
| getProtocolHandler | back to summary |
|---|---|
public ProtocolHandler getProtocolHandler()
| |
| getProtocolHandlerClassName | back to summary |
|---|---|
public String getProtocolHandlerClassName()
| |
| getProxyName | back to summary |
|---|---|
public String getProxyName()
| |
| getProxyPort | back to summary |
|---|---|
public int getProxyPort()
| |
| getRedirectPort | back to summary |
|---|---|
public int getRedirectPort()
| |
| getRedirectPortWithOffset | back to summary |
|---|---|
| public int getRedirectPortWithOffset() | |
| getRejectSuspiciousURIs | back to summary |
|---|---|
| public boolean getRejectSuspiciousURIs() | |
| getScheme | back to summary |
|---|---|
public String getScheme()
| |
| getSecure | back to summary |
|---|---|
public boolean getSecure()
| |
| getService | back to summary |
|---|---|
public Service getService()
| |
| getURICharset | back to summary |
|---|---|
public Charset getURICharset()
| |
| getURIEncoding | back to summary |
|---|---|
public String getURIEncoding()
| |
| getUseBodyEncodingForURI | back to summary |
|---|---|
public boolean getUseBodyEncodingForURI()
| |
| getUseIPVHosts | back to summary |
|---|---|
| public boolean getUseIPVHosts() Test if IP-based virtual hosting is enabled.
| |
| getXpoweredBy | back to summary |
|---|---|
| public boolean getXpoweredBy() Indicates whether the generation of an X-Powered-By response header for Servlet-generated responses is enabled or disabled for this Connector.
| |
| initInternal | back to summary |
|---|---|
| protected void initInternal() throws LifecycleException Overrides org. Doc from org. Sub-classes wishing to perform additional initialization should override this method, ensuring that super.initInternal() is the first call in the overriding method.
| |
| isParseBodyMethod | back to summary |
|---|---|
| protected boolean isParseBodyMethod(String method) | |
| pause | back to summary |
|---|---|
| public void pause() Pause the connector. | |
| resume | back to summary |
|---|---|
| public void resume() Resume the connector. | |
| setAllowBackslash | back to summary |
|---|---|
| public void setAllowBackslash(boolean allowBackslash) Set the allowBackslash flag.
| |
| setAllowTrace | back to summary |
|---|---|
| public void setAllowTrace(boolean allowTrace) Set the allowTrace flag, to disable or enable the TRACE HTTP method.
| |
| setAsyncTimeout | back to summary |
|---|---|
| public void setAsyncTimeout(long asyncTimeout) Set the default timeout for async requests.
| |
| setDiscardFacades | back to summary |
|---|---|
| public void setDiscardFacades(boolean discardFacades) Set the recycling strategy for the object facades.
| |
| setEnableLookups | back to summary |
|---|---|
| public void setEnableLookups(boolean enableLookups) Set the "enable DNS lookups" flag.
| |
| setEncodedSolidusHandling | back to summary |
|---|---|
| public void setEncodedSolidusHandling(String encodedSolidusHandling) | |
| setEnforceEncodingInGetWriter | back to summary |
|---|---|
| public void setEnforceEncodingInGetWriter(boolean enforceEncodingInGetWriter) Set the enforceEncodingInGetWriter flag.
| |
| setMaxCookieCount | back to summary |
|---|---|
| public void setMaxCookieCount(int maxCookieCount) | |
| setMaxParameterCount | back to summary |
|---|---|
| public void setMaxParameterCount(int maxParameterCount) Set the maximum number of parameters (GET plus POST) that will be automatically parsed by the container. A value of less than 0 means no limit.
| |
| setMaxPostSize | back to summary |
|---|---|
| public void setMaxPostSize(int maxPostSize) Set the maximum size of a POST which will be automatically parsed by the container.
| |
| setMaxSavePostSize | back to summary |
|---|---|
| public void setMaxSavePostSize(int maxSavePostSize) Set the maximum size of a POST which will be saved by the container during authentication.
| |
| setParseBodyMethods | back to summary |
|---|---|
| public void setParseBodyMethods(String methods) Set list of HTTP methods which should allow body parameter parsing. This defaults to
| |
| setPort | back to summary |
|---|---|
| public void setPort(int port) Set the port number on which we listen for requests.
| |
| setPortOffset | back to summary |
|---|---|
| public void setPortOffset(int portOffset) | |
| setProperty | back to summary |
|---|---|
| public boolean setProperty(String name, String value) Set a property on the protocol handler. | |
| setProxyName | back to summary |
|---|---|
| public void setProxyName(String proxyName) Set the proxy server name for this Connector.
| |
| setProxyPort | back to summary |
|---|---|
| public void setProxyPort(int proxyPort) Set the proxy server port for this Connector.
| |
| setRedirectPort | back to summary |
|---|---|
| public void setRedirectPort(int redirectPort) Set the redirect port number.
| |
| setRejectSuspiciousURIs | back to summary |
|---|---|
| public void setRejectSuspiciousURIs(boolean rejectSuspiciousURIs) | |
| setScheme | back to summary |
|---|---|
| public void setScheme(String scheme) Set the scheme that will be assigned to requests received through this connector.
| |
| setSecure | back to summary |
|---|---|
| public void setSecure(boolean secure) Set the secure connection flag that will be assigned to requests received through this connector.
| |
| setService | back to summary |
|---|---|
| public void setService(Service service) Set the
| |
| setURIEncoding | back to summary |
|---|---|
| public void setURIEncoding(String URIEncoding) Set the URI encoding to be used for the URI.
| |
| setUseBodyEncodingForURI | back to summary |
|---|---|
| public void setUseBodyEncodingForURI(boolean useBodyEncodingForURI) Set if the entity body encoding should be used for the URI.
| |
| setUseIPVHosts | back to summary |
|---|---|
| public void setUseIPVHosts(boolean useIPVHosts) Enable the use of IP-based virtual hosting.
| |
| setXpoweredBy | back to summary |
|---|---|
| public void setXpoweredBy(boolean xpoweredBy) Enables or disables the generation of an X-Powered-By header (with value Servlet/2.5) for all servlet-generated responses returned by this Connector.
| |
| startInternal | back to summary |
|---|---|
| protected void startInternal() throws LifecycleException Implements abstract org. Begin processing requests via this Connector.
| |
| stopInternal | back to summary |
|---|---|
| protected void stopInternal() throws LifecycleException Implements abstract org. Terminate processing requests via this Connector.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Provide a useful toString() implementation as it may be used when logging Lifecycle errors to identify the component.
| |