| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private transient Thread[] | |
| private int | |
| private int | |
| private String | |
| pack-priv transient int | |
| pack-priv transient long | |
| pack-priv transient long | |
| pack-priv transient long | |
| pack-priv transient int | |
| pack-priv transient int | |
| pack-priv transient int | |
| pack-priv transient int | |
| pack-priv transient int | |
| private boolean | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private int | |
| private String | |
| protected int | |
| protected int | |
| private String | |
| private int | |
| pack-priv transient int | |
| private boolean | |
| private Server | |
| protected int | |
| pack-priv Object | |
| pack-priv transient long | |
| private ThreadPool | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public void | customize(EndPoint endpoint, Request request)
Implements org. |
| protected void | |
| protected void | |
| public int | |
| public int | |
| public int | |
| public int | |
| public String | |
| public int | Returns: Number of connections accepted by the server since statsReset() called. Undefined if setStatsOn(false).Implements org. |
| public long | Returns: Average duration in milliseconds of open connections since statsReset() called. Undefined if setStatsOn(false).Implements org. |
| public long | Returns: Maximum duration in milliseconds of an open connection since statsReset() called. Undefined if setStatsOn(false).Implements org. |
| public long | Returns: Returns the connectionsDurationMin.Implements org. |
| public long | Returns: Returns the connectionsDurationTotal.Implements org. |
| public int | Returns: Number of connections currently open that were opened since statsReset() called. Undefined if setStatsOn(false).Implements org. |
| public int | Returns: Maximum number of connections opened simultaneously since statsReset() called. Undefined if setStatsOn(false).Implements org. |
| public int | Returns: Returns the connectionsOpenMin.Implements org. |
| public int | Returns: Average number of requests per connection since statsReset() called. Undefined if setStatsOn(false).Implements org. |
| public int | Returns: Maximum number of requests per connection since statsReset() called. Undefined if setStatsOn(false).Implements org. |
| public int | Returns: Returns the connectionsRequestsMin.Implements org. |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public int | |
| public String | |
| protected String | |
| public int | Returns: Returns the maxIdleTime.Implements org. |
| public int | Returns: Returns the maxIdleTime.Implements org. |
| public String | |
| public int | |
| public int | Returns: Get the number of requests handled by this context since last call of statsReset(). If setStatsOn(false) then this is undefined.Implements org. |
| public boolean | |
| public boolean | |
| public Server | |
| public long | |
| public boolean | Returns: True if statistics collection is turned on.Implements org. |
| public long | Returns: Timestamp stats were started at.Implements org. |
| public ThreadPool | |
| public boolean | |
| public boolean | Returns: true if this connector is checking the x-forwarded-for/host/server headersIs reverse proxy handling on? |
| public boolean | |
| public void | |
| public void | |
| public void | setAcceptorPriorityOffset(int
the amount to alter the priority of the acceptor threads. offset)Set the priority offset of the acceptor threads. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setForwarded(boolean
true if this connector is checking the x-forwarded-for/host/server headers check)Set reverse proxy handling |
| public void | setForwardedForHeader(String
The header name for forwarded for (default x-forwarded-for) forwardedRemoteAddressHeade)
|
| public void | setForwardedHostHeader(String
The header name for forwarded hosts (default x-forwarded-host) forwardedHostHeader)
|
| public void | setForwardedServerHeader(String
The header name for forwarded server (default x-forwarded-server) forwardedServerHeader)
|
| public void | |
| public void | setHostHeader(String
The value of the host header to force. hostHeader)Set a forced valued for the host header to control what is returned
by |
| public void | |
| public void | |
| public void | setLowResourceMaxIdleTime(int
The maxIdleTime to set. maxIdleTime)Implements org. |
| public void | setMaxIdleTime(int
The maxIdleTime to set. maxIdleTime)Implements org. Socket#setSoTimeout(int) call, although with NIO
implementations other mechanisms may be used to implement the timeout.
|
| public void | |
| public void | setPort(int
The port fto listen of for connections or 0 if any available
port may be used. port)Implements org. |
| public void | |
| public void | setReuseAddress(boolean
True if the the server socket will be opened in SO_REUSEADDR mode. reuseAddress)
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String |
| _acceptorPriorityOffset | back to summary |
|---|---|
| private int _acceptorPriorityOffset | |
| _acceptors | back to summary |
|---|---|
| private int _acceptors | |
| _acceptorThread | back to summary |
|---|---|
| private transient Thread[] _acceptorThread | |
| _acceptQueueSize | back to summary |
|---|---|
| private int _acceptQueueSize | |
| _confidentialPort | back to summary |
|---|---|
| private int _confidentialPort | |
| _confidentialScheme | back to summary |
|---|---|
| private String _confidentialScheme | |
| _connections | back to summary |
|---|---|
| pack-priv transient int _connections | |
| _connectionsDurationMax | back to summary |
|---|---|
| pack-priv transient long _connectionsDurationMax | |
| _connectionsDurationMin | back to summary |
|---|---|
| pack-priv transient long _connectionsDurationMin | |
| _connectionsDurationTotal | back to summary |
|---|---|
| pack-priv transient long _connectionsDurationTotal | |
| _connectionsOpen | back to summary |
|---|---|
| pack-priv transient int _connectionsOpen | |
| _connectionsOpenMax | back to summary |
|---|---|
| pack-priv transient int _connectionsOpenMax | |
| _connectionsOpenMin | back to summary |
|---|---|
| pack-priv transient int _connectionsOpenMin | |
| _connectionsRequestsMax | back to summary |
|---|---|
| pack-priv transient int _connectionsRequestsMax | |
| _connectionsRequestsMin | back to summary |
|---|---|
| pack-priv transient int _connectionsRequestsMin | |
| _forwarded | back to summary |
|---|---|
| private boolean _forwarded | |
| _forwardedForHeader | back to summary |
|---|---|
| private String _forwardedForHeader | |
| _forwardedHostHeader | back to summary |
|---|---|
| private String _forwardedHostHeader | |
| _forwardedServerHeader | back to summary |
|---|---|
| private String _forwardedServerHeader | |
| _host | back to summary |
|---|---|
| private String _host | |
| _hostHeader | back to summary |
|---|---|
| private String _hostHeader | |
| _integralPort | back to summary |
|---|---|
| private int _integralPort | |
| _integralScheme | back to summary |
|---|---|
| private String _integralScheme | |
| _lowResourceMaxIdleTime | back to summary |
|---|---|
| protected int _lowResourceMaxIdleTime | |
| _maxIdleTime | back to summary |
|---|---|
| protected int _maxIdleTime | |
| _name | back to summary |
|---|---|
| private String _name | |
| _port | back to summary |
|---|---|
| private int _port | |
| _requests | back to summary |
|---|---|
| pack-priv transient int _requests | |
| _reuseAddress | back to summary |
|---|---|
| private boolean _reuseAddress | |
| _server | back to summary |
|---|---|
| private Server _server | |
| _soLingerTime | back to summary |
|---|---|
| protected int _soLingerTime | |
| _statsLock | back to summary |
|---|---|
| pack-priv Object _statsLock | |
| _statsStartedAt | back to summary |
|---|---|
| pack-priv transient long _statsStartedAt | |
| _threadPool | back to summary |
|---|---|
| private ThreadPool _threadPool | |
| _useDNS | back to summary |
|---|---|
| private boolean _useDNS | |
| AbstractConnector | back to summary |
|---|---|
| public AbstractConnector() | |
| accept | back to summary |
|---|---|
| protected abstract void accept(int acceptorID) throws IOException, InterruptedException | |
| checkForwardedHeaders | back to summary |
|---|---|
| protected void checkForwardedHeaders(EndPoint endpoint, Request request) throws IOException | |
| configure | back to summary |
|---|---|
| protected void configure(Socket socket) throws IOException | |
| connectionClosed | back to summary |
|---|---|
| protected void connectionClosed(HttpConnection connection) | |
| connectionOpened | back to summary |
|---|---|
| protected void connectionOpened(HttpConnection connection) | |
| customize | back to summary |
|---|---|
| public void customize(EndPoint endpoint, Request request) throws IOException Implements org. Doc from org. Customize a request for an endpoint. Called on every request to allow customization of the request for the particular endpoint (eg security properties from a SSL connection). | |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception Overrides org. | |
| doStop | back to summary |
|---|---|
| protected void doStop() throws Exception | |
| getAcceptorPriorityOffset | back to summary |
|---|---|
public int getAcceptorPriorityOffset()
| |
| getAcceptors | back to summary |
|---|---|
public int getAcceptors()
| |
| getAcceptQueueSize | back to summary |
|---|---|
public int getAcceptQueueSize()
| |
| getConfidentialPort | back to summary |
|---|---|
| public int getConfidentialPort() Implements org.
| |
| getConfidentialScheme | back to summary |
|---|---|
| public String getConfidentialScheme() Implements org.
| |
| getConnections | back to summary |
|---|---|
| public int getConnections() Implements org.
| |
| getConnectionsDurationAve | back to summary |
|---|---|
| public long getConnectionsDurationAve() Implements org.
| |
| getConnectionsDurationMax | back to summary |
|---|---|
| public long getConnectionsDurationMax() Implements org.
| |
| getConnectionsDurationMin | back to summary |
|---|---|
| public long getConnectionsDurationMin() Implements org.
| |
| getConnectionsDurationTotal | back to summary |
|---|---|
| public long getConnectionsDurationTotal() Implements org.
| |
| getConnectionsOpen | back to summary |
|---|---|
| public int getConnectionsOpen() Implements org.
| |
| getConnectionsOpenMax | back to summary |
|---|---|
| public int getConnectionsOpenMax() Implements org.
| |
| getConnectionsOpenMin | back to summary |
|---|---|
| public int getConnectionsOpenMin() Implements org.
| |
| getConnectionsRequestsAve | back to summary |
|---|---|
| public int getConnectionsRequestsAve() Implements org.
| |
| getConnectionsRequestsMax | back to summary |
|---|---|
| public int getConnectionsRequestsMax() Implements org.
| |
| getConnectionsRequestsMin | back to summary |
|---|---|
| public int getConnectionsRequestsMin() Implements org.
| |
| getForwardedForHeader | back to summary |
|---|---|
| public String getForwardedForHeader() | |
| getForwardedHostHeader | back to summary |
|---|---|
| public String getForwardedHostHeader() | |
| getForwardedServerHeader | back to summary |
|---|---|
| public String getForwardedServerHeader() | |
| getHost | back to summary |
|---|---|
| public String getHost() Implements org. | |
| getHostHeader | back to summary |
|---|---|
| public String getHostHeader() | |
| getIntegralPort | back to summary |
|---|---|
| public int getIntegralPort() Implements org.
| |
| getIntegralScheme | back to summary |
|---|---|
| public String getIntegralScheme() Implements org.
| |
| getLeftMostValue | back to summary |
|---|---|
| protected String getLeftMostValue(String headerValue) | |
| getLowResourceMaxIdleTime | back to summary |
|---|---|
| public int getLowResourceMaxIdleTime() Implements org.
| |
| getMaxIdleTime | back to summary |
|---|---|
| public int getMaxIdleTime() Implements org.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org.
| |
| getPort | back to summary |
|---|---|
| public int getPort() Implements org.
| |
| getRequests | back to summary |
|---|---|
| public int getRequests() Implements org.
| |
| getResolveNames | back to summary |
|---|---|
| public boolean getResolveNames() Implements org.
| |
| getReuseAddress | back to summary |
|---|---|
public boolean getReuseAddress()
| |
| getServer | back to summary |
|---|---|
| public Server getServer() Implements org. | |
| getSoLingerTime | back to summary |
|---|---|
public long getSoLingerTime()
| |
| getStatsOn | back to summary |
|---|---|
| public boolean getStatsOn() Implements org.
| |
| getStatsOnMs | back to summary |
|---|---|
| public long getStatsOnMs() Implements org.
| |
| getThreadPool | back to summary |
|---|---|
| public ThreadPool getThreadPool() | |
| isConfidential | back to summary |
|---|---|
| public boolean isConfidential(Request request) Implements org.
| |
| isForwarded | back to summary |
|---|---|
| public boolean isForwarded() Is reverse proxy handling on?
| |
| isIntegral | back to summary |
|---|---|
| public boolean isIntegral(Request request) Implements org.
| |
| join | back to summary |
|---|---|
| public void join() throws InterruptedException | |
| persist | back to summary |
|---|---|
| public void persist(EndPoint endpoint) throws IOException Implements org. Doc from org. Persist an endpoint. Called after every request if the connection is to remain open. | |
| setAcceptorPriorityOffset | back to summary |
|---|---|
| public void setAcceptorPriorityOffset(int offset) Set the priority offset of the acceptor threads. The priority is adjusted by this amount (default 0) to either favour the acceptance of new threads and newly active connections or to favour the handling of already dispatched connections.
| |
| setAcceptors | back to summary |
|---|---|
public void setAcceptors(int acceptors)
| |
| setAcceptQueueSize | back to summary |
|---|---|
public void setAcceptQueueSize(int acceptQueueSize)
| |
| setConfidentialPort | back to summary |
|---|---|
public void setConfidentialPort(int confidentialPort)
| |
| setConfidentialScheme | back to summary |
|---|---|
public void setConfidentialScheme(String confidentialScheme)
| |
| setForwarded | back to summary |
|---|---|
| public void setForwarded(boolean check) Set reverse proxy handling
| |
| setForwardedForHeader | back to summary |
|---|---|
public void setForwardedForHeader(String forwardedRemoteAddressHeade)
| |
| setForwardedHostHeader | back to summary |
|---|---|
public void setForwardedHostHeader(String forwardedHostHeader)
| |
| setForwardedServerHeader | back to summary |
|---|---|
public void setForwardedServerHeader(String forwardedServerHeader)
| |
| setHost | back to summary |
|---|---|
| public void setHost(String host) Implements org. | |
| setHostHeader | back to summary |
|---|---|
| public void setHostHeader(String hostHeader) Set a forced valued for the host header to control what is returned
by
| |
| setIntegralPort | back to summary |
|---|---|
public void setIntegralPort(int integralPort)
| |
| setIntegralScheme | back to summary |
|---|---|
public void setIntegralScheme(String integralScheme)
| |
| setLowResourceMaxIdleTime | back to summary |
|---|---|
| public void setLowResourceMaxIdleTime(int maxIdleTime) Implements org.
| |
| setMaxIdleTime | back to summary |
|---|---|
| public void setMaxIdleTime(int maxIdleTime) Implements org. Set the maximum Idle time for a connection, which roughly translates
to the
Previously, Jetty supported separate idle timeouts and IO operation timeouts, however the expense of changing the value of soTimeout was significant, so these timeouts were merged. With the advent of NIO, it may be possible to again differentiate these values (if there is demand).
| |
| setName | back to summary |
|---|---|
| public void setName(String name) | |
| setPort | back to summary |
|---|---|
| public void setPort(int port) Implements org.
| |
| setResolveNames | back to summary |
|---|---|
| public void setResolveNames(boolean resolve) | |
| setReuseAddress | back to summary |
|---|---|
public void setReuseAddress(boolean reuseAddress)
| |
| setServer | back to summary |
|---|---|
| public void setServer(Server server) Implements org. | |
| setSoLingerTime | back to summary |
|---|---|
public void setSoLingerTime(int soLingerTime)
| |
| setStatsOn | back to summary |
|---|---|
| public void setStatsOn(boolean on) Implements org. | |
| setThreadPool | back to summary |
|---|---|
| public void setThreadPool(ThreadPool pool) | |
| statsReset | back to summary |
|---|---|
| public void statsReset() Implements org. Reset statistics. | |
| stopAccept | back to summary |
|---|---|
| public void stopAccept(int acceptorID) throws Exception | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| _acceptor | back to summary |
|---|---|
| pack-priv int _acceptor | |
| Acceptor | back to summary |
|---|---|
| pack-priv Acceptor(int id) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |