Class HttpConnection

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, Connection, org.eclipse.jetty.util.Attachable

    public abstract class HttpConnection
    extends java.lang.Object
    implements Connection, org.eclipse.jetty.util.Attachable
    • Constructor Detail

      • HttpConnection

        protected HttpConnection​(HttpDestination destination)
    • Method Detail

      • getHttpClient

        public HttpClient getHttpClient()
      • getHttpChannels

        protected abstract java.util.Iterator<HttpChannel> getHttpChannels()
      • send

        public void send​(Request request,
                         Response.CompleteListener listener)
        Description copied from interface: Connection
        Sends a request with an associated response listener.

        Request.send(Response.CompleteListener) will eventually call this method to send the request. It is exposed to allow applications to send requests via unpooled connections.

        Specified by:
        send in interface Connection
        Parameters:
        request - the request to send
        listener - the response listener
      • normalizeRequest

        protected void normalizeRequest​(Request request)
      • onIdleTimeout

        public boolean onIdleTimeout​(long idleTimeout)
      • setAttachment

        public void setAttachment​(java.lang.Object obj)
        Specified by:
        setAttachment in interface org.eclipse.jetty.util.Attachable
      • getAttachment

        public java.lang.Object getAttachment()
        Specified by:
        getAttachment in interface org.eclipse.jetty.util.Attachable
      • destroy

        protected void destroy()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object