Class RpcConnection

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.eclipse.jetty.io.Connection, org.eclipse.jetty.server.HttpTransport

    public class RpcConnection
    extends Object
    implements org.eclipse.jetty.io.Connection, org.eclipse.jetty.server.HttpTransport
    A custom version of HttpConnection that uses UPRequestParser and UPResponseGenerator instead of the standard HTTP stream parser and generator.
    • Method Detail

      • addListener

        public void addListener​(org.eclipse.jetty.io.Connection.Listener listener)
        Specified by:
        addListener in interface org.eclipse.jetty.io.Connection
      • onOpen

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

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

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

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface org.eclipse.jetty.io.Connection
      • getMessagesIn

        public long getMessagesIn()
        Specified by:
        getMessagesIn in interface org.eclipse.jetty.io.Connection
      • getMessagesOut

        public long getMessagesOut()
        Specified by:
        getMessagesOut in interface org.eclipse.jetty.io.Connection
      • getBytesIn

        public long getBytesIn()
        Specified by:
        getBytesIn in interface org.eclipse.jetty.io.Connection
      • getBytesOut

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

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

        public void send​(org.eclipse.jetty.http.MetaData.Response info,
                         boolean head,
                         ByteBuffer content,
                         boolean lastContent,
                         org.eclipse.jetty.util.Callback callback)
        Specified by:
        send in interface org.eclipse.jetty.server.HttpTransport
      • onCompleted

        public void onCompleted()
        Specified by:
        onCompleted in interface org.eclipse.jetty.server.HttpTransport
      • abort

        public void abort​(Throwable t)
        Specified by:
        abort in interface org.eclipse.jetty.server.HttpTransport
      • isPushSupported

        public boolean isPushSupported()
        Specified by:
        isPushSupported in interface org.eclipse.jetty.server.HttpTransport
      • push

        public void push​(org.eclipse.jetty.http.MetaData.Request rqst)
        Specified by:
        push in interface org.eclipse.jetty.server.HttpTransport
      • isOptimizedForDirectBuffers

        public boolean isOptimizedForDirectBuffers()
        Specified by:
        isOptimizedForDirectBuffers in interface org.eclipse.jetty.server.HttpTransport
      • onIdleExpired

        public boolean onIdleExpired()
        Specified by:
        onIdleExpired in interface org.eclipse.jetty.io.Connection
      • removeListener

        public void removeListener​(org.eclipse.jetty.io.Connection.Listener ll)
        Specified by:
        removeListener in interface org.eclipse.jetty.io.Connection