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