Top Inners Fields Methods
org.eclipse.jetty.server

public Interface ConnectionMetaData

extends Attributes
Known Direct Implementers
org.eclipse.jetty.server.ConnectionMetaData.Wrapper, org.eclipse.jetty.server.internal.HttpConnection, org.eclipse.jetty.server.AbstractMetaDataConnection
Imports
java.net.InetSocketAddress, .SocketAddress, org.eclipse.jetty.http.HttpVersion, org.eclipse.jetty.io.Connection, .EndPoint, org.eclipse.jetty.util.Attributes, .HostPort

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Inherited from org.eclipse.jetty.util.Attributes:
NULL

Method Summary

Modifier and TypeMethod and Description
public Connection
public Connector
public HttpConfiguration
public HttpVersion
public String

Returns:

a unique (within the lifetime of the JVM) identifier string for the network connection to the JVM
getId
()

public SocketAddress

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.
getLocalSocketAddress
()

public String
public SocketAddress

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.
getRemoteSocketAddress
()

public default HostPort

Returns:

The URI authority that this server represents. By default, this is the address of the network socket on which the connection was accepted, but it may be configured to a specific address.
getServerAuthority
()

public boolean
public default boolean

Returns:

whether the functionality of pushing resources is supported
isPushSupported
()

public default boolean
Inherited from org.eclipse.jetty.util.Attributes:
asAttributeMapclearAttributesequalsequalsgetAttributegetAttributeNameSethashCodehashCoderemoveAttributesetAttributeunwrapunwrap

Method Detail

getConnectionback to summary
public Connection getConnection()
getConnectorback to summary
public Connector getConnector()
getHttpConfigurationback to summary
public HttpConfiguration getHttpConfiguration()
getHttpVersionback to summary
public HttpVersion getHttpVersion()
getIdback to summary
public String getId()
Returns:String

a unique (within the lifetime of the JVM) identifier string for the network connection to the JVM

getLocalSocketAddressback to summary
public SocketAddress getLocalSocketAddress()
Returns:SocketAddress

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.

getProtocolback to summary
public String getProtocol()
getRemoteSocketAddressback to summary
public SocketAddress getRemoteSocketAddress()
Returns:SocketAddress

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.

getServerAuthorityback to summary
public default HostPort getServerAuthority()
Returns:HostPort

The URI authority that this server represents. By default, this is the address of the network socket on which the connection was accepted, but it may be configured to a specific address.

See Also
HttpConfiguration#setServerAuthority(HostPort)
isPersistentback to summary
public boolean isPersistent()
isPushSupportedback to summary
public default boolean isPushSupported()
Returns:boolean

whether the functionality of pushing resources is supported

isSecureback to summary
public default boolean isSecure()
org.eclipse.jetty.server back to summary

public Class ConnectionMetaData.Wrapper

extends Wrapper
implements ConnectionMetaData
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.server.ConnectionMetaData, org.eclipse.jetty.util.Attributes

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Connection
public Connector
public HttpConfiguration
public HttpVersion
public String
public SocketAddress
public String
public SocketAddress
public HostPort
public ConnectionMetaData
public boolean
public boolean
public boolean
Inherited from org.eclipse.jetty.util.Attributes.Wrapper:
clearAttributesequalsgetAttributegetAttributeNameSethashCoderemoveAttributesetAttribute

Constructor Detail

Wrapperback to summary
public Wrapper(ConnectionMetaData wrapped)

Method Detail

getConnectionback to summary
public Connection getConnection()

Implements org.eclipse.jetty.server.ConnectionMetaData.getConnection.

Annotations
@Override
getConnectorback to summary
public Connector getConnector()

Implements org.eclipse.jetty.server.ConnectionMetaData.getConnector.

Annotations
@Override
getHttpConfigurationback to summary
public HttpConfiguration getHttpConfiguration()

Implements org.eclipse.jetty.server.ConnectionMetaData.getHttpConfiguration.

Annotations
@Override
getHttpVersionback to summary
public HttpVersion getHttpVersion()

Implements org.eclipse.jetty.server.ConnectionMetaData.getHttpVersion.

Annotations
@Override
getIdback to summary
public String getId()

Implements org.eclipse.jetty.server.ConnectionMetaData.getId.

Returns:String

Doc from org.eclipse.jetty.server.ConnectionMetaData.getId.

a unique (within the lifetime of the JVM) identifier string for the network connection to the JVM

Annotations
@Override
getLocalSocketAddressback to summary
public SocketAddress getLocalSocketAddress()

Implements org.eclipse.jetty.server.ConnectionMetaData.getLocalSocketAddress.

Returns:SocketAddress

Doc from org.eclipse.jetty.server.ConnectionMetaData.getLocalSocketAddress.

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.

Annotations
@Override
getProtocolback to summary
public String getProtocol()

Implements org.eclipse.jetty.server.ConnectionMetaData.getProtocol.

Annotations
@Override
getRemoteSocketAddressback to summary
public SocketAddress getRemoteSocketAddress()

Implements org.eclipse.jetty.server.ConnectionMetaData.getRemoteSocketAddress.

Returns:SocketAddress

Doc from org.eclipse.jetty.server.ConnectionMetaData.getRemoteSocketAddress.

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.

Annotations
@Override
getServerAuthorityback to summary
public HostPort getServerAuthority()

Overrides default org.eclipse.jetty.server.ConnectionMetaData.getServerAuthority.

Returns:HostPort

Doc from org.eclipse.jetty.server.ConnectionMetaData.getServerAuthority.

The URI authority that this server represents. By default, this is the address of the network socket on which the connection was accepted, but it may be configured to a specific address.

Annotations
@Override
getWrappedback to summary
public ConnectionMetaData getWrapped()

Overrides org.eclipse.jetty.util.Attributes.Wrapper.getWrapped.

Annotations
@Override
isPersistentback to summary
public boolean isPersistent()

Implements org.eclipse.jetty.server.ConnectionMetaData.isPersistent.

Annotations
@Override
isPushSupportedback to summary
public boolean isPushSupported()

Overrides default org.eclipse.jetty.server.ConnectionMetaData.isPushSupported.

Returns:boolean

Doc from org.eclipse.jetty.server.ConnectionMetaData.isPushSupported.

whether the functionality of pushing resources is supported

Annotations
@Override
isSecureback to summary
public boolean isSecure()

Overrides default org.eclipse.jetty.server.ConnectionMetaData.isSecure.

Annotations
@Override