Class AbstractMetaDataConnection
java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.server.AbstractMetaDataConnection
- All Implemented Interfaces:
Closeable, AutoCloseable, Connection, ConnectionMetaData, Attributes, Invocable
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 Attributes
Attributes.Layer, Attributes.Lazy, Attributes.Mapped, Attributes.SyntheticNested classes/interfaces inherited from interface Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeToNested classes/interfaces inherited from interface ConnectionMetaData
ConnectionMetaData.WrapperNested classes/interfaces inherited from interface Invocable
Invocable.Callable, Invocable.InvocationType, Invocable.ReadyTask, Invocable.Task -
Field Summary
Fields inherited from interface Attributes
NULLFields inherited from interface Invocable
__nonBlocking, NOOP -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMetaDataConnection(Connector connector, HttpConfiguration httpConfiguration, EndPoint endPoint) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class 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, tryFillInterestedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Attributes
asAttributeMap, clearAttributes, equals, getAttribute, getAttributeNameSet, hashCode, removeAttribute, setAttributeMethods inherited from interface ConnectionMetaData
getHttpVersion, getId, getProtocol, getServerAuthority, isPersistent, isPushSupported, isSecure
-
Constructor Details
-
AbstractMetaDataConnection
public AbstractMetaDataConnection(Connector connector, HttpConfiguration httpConfiguration, EndPoint endPoint)
-
-
Method Details
-
getRemoteSocketAddress
- Specified by:
getRemoteSocketAddressin 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:
getLocalSocketAddressin 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:
getHttpConfigurationin interfaceConnectionMetaData
-
getConnection
- Specified by:
getConnectionin interfaceConnectionMetaData
-
getConnector
- Specified by:
getConnectorin interfaceConnectionMetaData
-