Class ProxyConnectionFactory.ProxyEndPoint

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.eclipse.jetty.io.EndPoint, 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
    • Field Summary

      • Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

        KEY
    • Constructor Summary

      Constructors 
      Constructor Description
      ProxyEndPoint​(org.eclipse.jetty.io.EndPoint endp, java.net.InetSocketAddress remote, java.net.InetSocketAddress local)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close​(java.lang.Throwable cause)  
      int fill​(java.nio.ByteBuffer buffer)  
      void fillInterested​(org.eclipse.jetty.util.Callback callback)  
      boolean flush​(java.nio.ByteBuffer... buffer)  
      org.eclipse.jetty.io.Connection getConnection()  
      long getCreatedTimeStamp()  
      long getIdleTimeout()  
      java.net.InetSocketAddress getLocalAddress()  
      java.net.InetSocketAddress getRemoteAddress()  
      java.lang.Object getTransport()  
      boolean isFillInterested()  
      boolean isInputShutdown()  
      boolean isOpen()  
      boolean isOutputShutdown()  
      void onClose​(java.lang.Throwable cause)  
      void onOpen()  
      void setConnection​(org.eclipse.jetty.io.Connection connection)  
      void setIdleTimeout​(long idleTimeout)  
      void shutdownOutput()  
      java.lang.String toString()  
      boolean tryFillInterested​(org.eclipse.jetty.util.Callback callback)  
      void upgrade​(org.eclipse.jetty.io.Connection newConnection)  
      void write​(org.eclipse.jetty.util.Callback callback, java.nio.ByteBuffer... buffers)  
      • Methods inherited from class org.eclipse.jetty.util.AttributesMap

        addAll, clearAttributes, dump, dump, getAttribute, getAttributeEntrySet, getAttributeNames, getAttributeNamesCopy, getAttributeNameSet, removeAttribute, setAttribute, size
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.jetty.util.component.Dumpable

        dumpSelf
      • Methods inherited from interface org.eclipse.jetty.io.EndPoint

        close
    • Constructor Detail

      • ProxyEndPoint

        public ProxyEndPoint​(org.eclipse.jetty.io.EndPoint endp,
                             java.net.InetSocketAddress remote,
                             java.net.InetSocketAddress local)
    • Method Detail

      • getLocalAddress

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

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

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

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

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

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

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

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

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

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

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

        public java.lang.Object getTransport()
        Specified by:
        getTransport 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
      • fillInterested

        public void fillInterested​(org.eclipse.jetty.util.Callback callback)
                            throws java.nio.channels.ReadPendingException
        Specified by:
        fillInterested in interface org.eclipse.jetty.io.EndPoint
        Throws:
        java.nio.channels.ReadPendingException
      • tryFillInterested

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

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

        public void write​(org.eclipse.jetty.util.Callback callback,
                          java.nio.ByteBuffer... buffers)
                   throws java.nio.channels.WritePendingException
        Specified by:
        write in interface org.eclipse.jetty.io.EndPoint
        Throws:
        java.nio.channels.WritePendingException
      • 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
      • onOpen

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

        public void onClose​(java.lang.Throwable cause)
        Specified by:
        onClose 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