Package org.eclipse.jetty.server
Class AbstractMetaDataConnection
java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.server.AbstractMetaDataConnection
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Connection
,ConnectionMetaData
,Attributes
,Invocable
- Direct Known Subclasses:
HttpConnection
,ServerFCGIConnection
public abstract class AbstractMetaDataConnection
extends AbstractConnection
implements ConnectionMetaData
An
AbstractConnection
that also implements ConnectionMetaData
with fixed
local and remote addresses.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Attributes
Attributes.Layer, Attributes.Lazy, Attributes.Mapped, Attributes.Synthetic
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.ConnectionMetaData
ConnectionMetaData.Wrapper
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.Callable, Invocable.InvocationType, Invocable.ReadyTask, Invocable.Task
-
Field Summary
Fields inherited from interface org.eclipse.jetty.util.Attributes
NULL
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking, NOOP
-
Constructor Summary
ConstructorDescriptionAbstractMetaDataConnection
(Connector connector, HttpConfiguration httpConfiguration, EndPoint endPoint) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.eclipse.jetty.io.AbstractConnection
addEventListener, close, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getInvocationType, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillable, onFillInterestedFailed, onIdleExpired, onOpen, onReadTimeout, removeEventListener, setInputBufferSize, toConnectionString, toString, tryFillInterested
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.Attributes
asAttributeMap, clearAttributes, equals, getAttribute, getAttributeNameSet, hashCode, removeAttribute, setAttribute
Methods inherited from interface org.eclipse.jetty.server.ConnectionMetaData
getHttpVersion, getId, getProtocol, getServerAuthority, isPersistent, isPushSupported, isSecure
-
Constructor Details
-
AbstractMetaDataConnection
public AbstractMetaDataConnection(Connector connector, HttpConfiguration httpConfiguration, EndPoint endPoint)
-
-
Method Details
-
getRemoteSocketAddress
- Specified by:
getRemoteSocketAddress
in interfaceConnectionMetaData
- Returns:
- The address of the remote end of this connection. By default, this is the first hop of the underlying network connection, but it may be wrapped to represent a more remote end point.
-
getLocalSocketAddress
- Specified by:
getLocalSocketAddress
in interfaceConnectionMetaData
- Returns:
- The address of the local end of this connection. By default, this is the address of the underlying network connection, but it may be wrapped if the deployment wishes to hide all local details.
-
getHttpConfiguration
- Specified by:
getHttpConfiguration
in interfaceConnectionMetaData
-
getConnection
- Specified by:
getConnection
in interfaceConnectionMetaData
-
getConnector
- Specified by:
getConnector
in interfaceConnectionMetaData
-