Class ProxyConnectionFactory.ProxyEndPoint

java.lang.Object
org.eclipse.jetty.util.AttributesMap
org.eclipse.jetty.server.ProxyConnectionFactory.ProxyEndPoint
All Implemented Interfaces:
Closeable, AutoCloseable, org.eclipse.jetty.io.EndPoint, org.eclipse.jetty.io.EndPoint.Wrapper, org.eclipse.jetty.util.Attributes, org.eclipse.jetty.util.component.Dumpable
Enclosing class:
ProxyConnectionFactory

public static class ProxyConnectionFactory.ProxyEndPoint extends org.eclipse.jetty.util.AttributesMap implements org.eclipse.jetty.io.EndPoint, org.eclipse.jetty.io.EndPoint.Wrapper
  • Constructor Details

  • Method Details

    • unwrap

      public org.eclipse.jetty.io.EndPoint unwrap()
      Specified by:
      unwrap in interface org.eclipse.jetty.io.EndPoint.Wrapper
    • getTLV

      public byte[] getTLV(int type)

      Gets a TLV vector, see section 2.2.7 of the PROXY protocol specification.

      Parameters:
      type - the TLV type
      Returns:
      the TLV value or null if not present.
    • close

      public void close(Throwable cause)
      Specified by:
      close in interface org.eclipse.jetty.io.EndPoint
    • fill

      public int fill(ByteBuffer buffer) throws IOException
      Specified by:
      fill in interface org.eclipse.jetty.io.EndPoint
      Throws:
      IOException
    • fillInterested

      public void fillInterested(org.eclipse.jetty.util.Callback callback) throws ReadPendingException
      Specified by:
      fillInterested in interface org.eclipse.jetty.io.EndPoint
      Throws:
      ReadPendingException
    • flush

      public boolean flush(ByteBuffer... buffer) throws IOException
      Specified by:
      flush in interface org.eclipse.jetty.io.EndPoint
      Throws:
      IOException
    • getConnection

      public org.eclipse.jetty.io.Connection getConnection()
      Specified by:
      getConnection in interface org.eclipse.jetty.io.EndPoint
    • setConnection

      public void setConnection(org.eclipse.jetty.io.Connection connection)
      Specified by:
      setConnection in interface org.eclipse.jetty.io.EndPoint
    • getCreatedTimeStamp

      public long getCreatedTimeStamp()
      Specified by:
      getCreatedTimeStamp in interface org.eclipse.jetty.io.EndPoint
    • getIdleTimeout

      public long getIdleTimeout()
      Specified by:
      getIdleTimeout in interface org.eclipse.jetty.io.EndPoint
    • setIdleTimeout

      public void setIdleTimeout(long idleTimeout)
      Specified by:
      setIdleTimeout in interface org.eclipse.jetty.io.EndPoint
    • getLocalAddress

      public InetSocketAddress getLocalAddress()
      Specified by:
      getLocalAddress in interface org.eclipse.jetty.io.EndPoint
    • getLocalSocketAddress

      public SocketAddress getLocalSocketAddress()
      Specified by:
      getLocalSocketAddress in interface org.eclipse.jetty.io.EndPoint
    • getRemoteAddress

      public InetSocketAddress getRemoteAddress()
      Specified by:
      getRemoteAddress in interface org.eclipse.jetty.io.EndPoint
    • getRemoteSocketAddress

      public SocketAddress getRemoteSocketAddress()
      Specified by:
      getRemoteSocketAddress in interface org.eclipse.jetty.io.EndPoint
    • getTransport

      public Object getTransport()
      Specified by:
      getTransport in interface org.eclipse.jetty.io.EndPoint
    • isFillInterested

      public boolean isFillInterested()
      Specified by:
      isFillInterested in interface org.eclipse.jetty.io.EndPoint
    • isInputShutdown

      public boolean isInputShutdown()
      Specified by:
      isInputShutdown in interface org.eclipse.jetty.io.EndPoint
    • isOpen

      public boolean isOpen()
      Specified by:
      isOpen in interface org.eclipse.jetty.io.EndPoint
    • isOutputShutdown

      public boolean isOutputShutdown()
      Specified by:
      isOutputShutdown in interface org.eclipse.jetty.io.EndPoint
    • onClose

      public void onClose(Throwable cause)
      Specified by:
      onClose in interface org.eclipse.jetty.io.EndPoint
    • onOpen

      public void onOpen()
      Specified by:
      onOpen in interface org.eclipse.jetty.io.EndPoint
    • shutdownOutput

      public void shutdownOutput()
      Specified by:
      shutdownOutput in interface org.eclipse.jetty.io.EndPoint
    • toString

      public String toString()
      Overrides:
      toString in class org.eclipse.jetty.util.AttributesMap
    • tryFillInterested

      public boolean tryFillInterested(org.eclipse.jetty.util.Callback callback)
      Specified by:
      tryFillInterested in interface org.eclipse.jetty.io.EndPoint
    • upgrade

      public void upgrade(org.eclipse.jetty.io.Connection newConnection)
      Specified by:
      upgrade in interface org.eclipse.jetty.io.EndPoint
    • write

      public void write(org.eclipse.jetty.util.Callback callback, ByteBuffer... buffers) throws WritePendingException
      Specified by:
      write in interface org.eclipse.jetty.io.EndPoint
      Throws:
      WritePendingException