Class ProxyConnectionFactory.ProxyEndPoint
- java.lang.Object
 - 
- org.eclipse.jetty.util.AttributesMap
 - 
- org.eclipse.jetty.server.ProxyConnectionFactory.ProxyEndPoint
 
 
 
- 
- All Implemented Interfaces:
 java.io.Closeable,java.lang.AutoCloseable,EndPoint,Attributes,Dumpable
- Enclosing class:
 - ProxyConnectionFactory
 
@Deprecated(since="2021-05-27") public static class ProxyConnectionFactory.ProxyEndPoint extends AttributesMap implements EndPoint
Deprecated. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Attributes
Attributes.Wrapper 
- 
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ProxyEndPoint(EndPoint endp, java.net.InetSocketAddress remote, java.net.InetSocketAddress local)Deprecated. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.Close any backing stream associated with the endpointintfill(java.nio.ByteBuffer buffer)Deprecated.Fill the passed buffer with data from this endpoint.voidfillInterested(Callback callback)Deprecated.Requests callback methods to be invoked when a call toEndPoint.fill(ByteBuffer)would return data or EOF.booleanflush(java.nio.ByteBuffer... buffer)Deprecated.Flush data from the passed header/buffer to this endpoint.ConnectiongetConnection()Deprecated.longgetCreatedTimeStamp()Deprecated.longgetIdleTimeout()Deprecated.Get the max idle time in ms.java.net.InetSocketAddressgetLocalAddress()Deprecated.java.net.InetSocketAddressgetRemoteAddress()Deprecated.java.lang.ObjectgetTransport()Deprecated.booleanisFillInterested()Deprecated.booleanisInputShutdown()Deprecated.Test if the input is shutdown.booleanisOpen()Deprecated.booleanisOptimizedForDirectBuffers()Deprecated.Is the endpoint optimized for DirectBuffer usagebooleanisOutputShutdown()Deprecated.Test if output is shutdown.voidonClose()Deprecated.Callback method invoked when this EndPoint is close.voidonOpen()Deprecated.Callback method invoked when this EndPoint is opened.voidsetConnection(Connection connection)Deprecated.voidsetIdleTimeout(long idleTimeout)Deprecated.Set the idle timeout.voidshutdownOutput()Deprecated.Shutdown the output.java.lang.StringtoString()Deprecated.booleantryFillInterested(Callback callback)Deprecated.Requests callback methods to be invoked when a call toEndPoint.fill(ByteBuffer)would return data or EOF.EndPointunwrap()Deprecated.voidupgrade(Connection newConnection)Deprecated.Upgrades this EndPoint from the current connection to the given new connection.voidwrite(Callback callback, java.nio.ByteBuffer... buffers)Deprecated.Writes the given buffers viaEndPoint.flush(ByteBuffer...)and invokes callback methods when either all the data has been flushed or an error occurs.- 
Methods inherited from class org.eclipse.jetty.util.AttributesMap
addAll, clearAttributes, dump, dump, getAttribute, getAttributeEntrySet, getAttributeNames, getAttributeNamesCopy, getAttributeNameSet, removeAttribute, setAttribute, size 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
ProxyEndPoint
public ProxyEndPoint(EndPoint endp, java.net.InetSocketAddress remote, java.net.InetSocketAddress local)
Deprecated. 
 - 
 
- 
Method Detail
- 
unwrap
public EndPoint unwrap()
Deprecated. 
- 
close
public void close()
Deprecated.Description copied from interface:EndPointClose any backing stream associated with the endpoint 
- 
fill
public int fill(java.nio.ByteBuffer buffer) throws java.io.IOExceptionDeprecated.Description copied from interface:EndPointFill the passed buffer with data from this endpoint. The bytes are appended to any data already in the buffer by writing from the buffers limit up to it's capacity. The limit is updated to include the filled bytes.- Specified by:
 fillin interfaceEndPoint- Parameters:
 buffer- The buffer to fill. The position and limit are modified during the fill. After the operation, the position is unchanged and the limit is increased to reflect the new data filled.- Returns:
 - an 
intvalue indicating the number of bytes filled or -1 if EOF is read or the input is shutdown. - Throws:
 java.io.IOException- if the endpoint is closed.
 
- 
fillInterested
public void fillInterested(Callback callback) throws java.nio.channels.ReadPendingException
Deprecated.Description copied from interface:EndPointRequests callback methods to be invoked when a call to
EndPoint.fill(ByteBuffer)would return data or EOF.- Specified by:
 fillInterestedin interfaceEndPoint- Parameters:
 callback- the callback to call when an error occurs or we are readable. The callback may implement theInvocableinterface to self declare its blocking status. Non-blocking callbacks may be called more efficiently without dispatch delays.- Throws:
 java.nio.channels.ReadPendingException- if another read operation is concurrent.
 
- 
flush
public boolean flush(java.nio.ByteBuffer... buffer) throws java.io.IOExceptionDeprecated.Description copied from interface:EndPointFlush data from the passed header/buffer to this endpoint. As many bytes as can be consumed are taken from the header/buffer position up until the buffer limit. The header/buffers position is updated to indicate how many bytes have been consumed.- Specified by:
 flushin interfaceEndPoint- Parameters:
 buffer- the buffers to flush- Returns:
 - True IFF all the buffers have been consumed and the endpoint has flushed the data to its destination (ie is not buffering any data).
 - Throws:
 java.io.IOException- If the endpoint is closed or output is shutdown.
 
- 
getConnection
public Connection getConnection()
Deprecated.- Specified by:
 getConnectionin interfaceEndPoint- Returns:
 - the 
Connectionassociated with this EndPoint - See Also:
 EndPoint.setConnection(Connection)
 
- 
setConnection
public void setConnection(Connection connection)
Deprecated.- Specified by:
 setConnectionin interfaceEndPoint- Parameters:
 connection- theConnectionassociated with this EndPoint- See Also:
 EndPoint.getConnection(),EndPoint.upgrade(Connection)
 
- 
getCreatedTimeStamp
public long getCreatedTimeStamp()
Deprecated.- Specified by:
 getCreatedTimeStampin interfaceEndPoint- Returns:
 - the epoch time in milliseconds when this EndPoint was created
 
 
- 
getIdleTimeout
public long getIdleTimeout()
Deprecated.Description copied from interface:EndPointGet the max idle time in ms.The max idle time is the time the endpoint can be idle before extraordinary handling takes place.
- Specified by:
 getIdleTimeoutin interfaceEndPoint- Returns:
 - the max idle time in ms or if ms <= 0 implies an infinite timeout
 
 
- 
setIdleTimeout
public void setIdleTimeout(long idleTimeout)
Deprecated.Description copied from interface:EndPointSet the idle timeout.- Specified by:
 setIdleTimeoutin interfaceEndPoint- Parameters:
 idleTimeout- the idle timeout in MS. Timeout <= 0 implies an infinite timeout
 
- 
getLocalAddress
public java.net.InetSocketAddress getLocalAddress()
Deprecated.- Specified by:
 getLocalAddressin interfaceEndPoint- Returns:
 - The local Inet address to which this 
EndPointis bound, ornullif thisEndPointdoes not represent a network connection. 
 
- 
getRemoteAddress
public java.net.InetSocketAddress getRemoteAddress()
Deprecated.- Specified by:
 getRemoteAddressin interfaceEndPoint- Returns:
 - The remote Inet address to which this 
EndPointis bound, ornullif thisEndPointdoes not represent a network connection. 
 
- 
getTransport
public java.lang.Object getTransport()
Deprecated.- Specified by:
 getTransportin interfaceEndPoint- Returns:
 - The underlying transport object (socket, channel, etc.)
 
 
- 
isFillInterested
public boolean isFillInterested()
Deprecated.- Specified by:
 isFillInterestedin interfaceEndPoint- Returns:
 - whether 
EndPoint.fillInterested(Callback)has been called, butEndPoint.fill(ByteBuffer)has not yet been called 
 
- 
isInputShutdown
public boolean isInputShutdown()
Deprecated.Description copied from interface:EndPointTest if the input is shutdown. The input is shutdown if an EOF has been read while doing aEndPoint.fill(ByteBuffer). Once the input is shutdown, all calls toEndPoint.fill(ByteBuffer)will return -1, until such time as the end point is close, when they will returnEofException.- Specified by:
 isInputShutdownin interfaceEndPoint- Returns:
 - True if the input is shutdown or the endpoint is closed.
 
 
- 
isOpen
public boolean isOpen()
Deprecated. 
- 
isOptimizedForDirectBuffers
public boolean isOptimizedForDirectBuffers()
Deprecated.Description copied from interface:EndPointIs the endpoint optimized for DirectBuffer usage- Specified by:
 isOptimizedForDirectBuffersin interfaceEndPoint- Returns:
 - True if direct buffers can be used optimally.
 
 
- 
isOutputShutdown
public boolean isOutputShutdown()
Deprecated.Description copied from interface:EndPointTest if output is shutdown. The output is shutdown by a call toEndPoint.shutdownOutput()orEndPoint.close().- Specified by:
 isOutputShutdownin interfaceEndPoint- Returns:
 - true if the output is shutdown or the endpoint is closed.
 
 
- 
onClose
public void onClose()
Deprecated.Description copied from interface:EndPointCallback method invoked when this EndPoint is close.
- Specified by:
 onClosein interfaceEndPoint- See Also:
 EndPoint.onOpen()
 
- 
onOpen
public void onOpen()
Deprecated.Description copied from interface:EndPointCallback method invoked when this EndPoint is opened.
- Specified by:
 onOpenin interfaceEndPoint- See Also:
 EndPoint.onClose()
 
- 
shutdownOutput
public void shutdownOutput()
Deprecated.Description copied from interface:EndPointShutdown the output.This call indicates that no more data will be sent on this endpoint that that the remote end should read an EOF once all previously sent data has been consumed. Shutdown may be done either at the TCP/IP level, as a protocol exchange (Eg TLS close handshake) or both.
If the endpoint has
EndPoint.isInputShutdown()true, then this call has the same effect asEndPoint.close().- Specified by:
 shutdownOutputin interfaceEndPoint
 
- 
toString
public java.lang.String toString()
Deprecated.- Overrides:
 toStringin classAttributesMap
 
- 
tryFillInterested
public boolean tryFillInterested(Callback callback)
Deprecated.Description copied from interface:EndPointRequests callback methods to be invoked when a call to
EndPoint.fill(ByteBuffer)would return data or EOF.- Specified by:
 tryFillInterestedin interfaceEndPoint- Parameters:
 callback- the callback to call when an error occurs or we are readable. The callback may implement theInvocableinterface to self declare its blocking status. Non-blocking callbacks may be called more efficiently without dispatch delays.- Returns:
 - true if set
 
 
- 
upgrade
public void upgrade(Connection newConnection)
Deprecated.Description copied from interface:EndPointUpgrades this EndPoint from the current connection to the given new connection.
Closes the current connection, links this EndPoint to the new connection and then opens the new connection.
If the current connection is an instance of
Connection.UpgradeFromthen a buffer of unconsumed bytes is requested. If the buffer of unconsumed bytes is non-null and non-empty, then the new connection is tested: if it is an instance ofConnection.UpgradeTo, then the unconsumed buffer is passed to the new connection; otherwise, an exception is thrown since there are unconsumed bytes that cannot be consumed by the new connection. 
- 
write
public void write(Callback callback, java.nio.ByteBuffer... buffers) throws java.nio.channels.WritePendingException
Deprecated.Description copied from interface:EndPointWrites the given buffers via
EndPoint.flush(ByteBuffer...)and invokes callback methods when either all the data has been flushed or an error occurs.- Specified by:
 writein interfaceEndPoint- Parameters:
 callback- the callback to call when an error occurs or the write completed. The callback may implement theInvocableinterface to self declare its blocking status. Non-blocking callbacks may be called more efficiently without dispatch delays.buffers- one or moreByteBuffers that will be flushed.- Throws:
 java.nio.channels.WritePendingException- if another write operation is concurrent.
 
 - 
 
 -