Module swim.runtime

Class HttpUplinkModem

  • All Implemented Interfaces:
    swim.api.http.HttpUplink, swim.api.Link, swim.observable.Observable<Object>, HttpContext, swim.util.Log
    Direct Known Subclasses:
    HttpLaneUplink

    public abstract class HttpUplinkModem
    extends Object
    implements HttpContext, swim.api.http.HttpUplink
    • Field Detail

    • Constructor Detail

      • HttpUplinkModem

        public HttpUplinkModem​(HttpBinding httpBinding)
    • Method Detail

      • hostUri

        public final swim.uri.Uri hostUri()
        Specified by:
        hostUri in interface swim.api.http.HttpUplink
        Specified by:
        hostUri in interface swim.api.Link
      • nodeUri

        public final swim.uri.Uri nodeUri()
        Specified by:
        nodeUri in interface swim.api.http.HttpUplink
        Specified by:
        nodeUri in interface swim.api.Link
      • laneUri

        public final swim.uri.Uri laneUri()
        Specified by:
        laneUri in interface swim.api.http.HttpUplink
        Specified by:
        laneUri in interface swim.api.Link
      • requestUri

        public final swim.uri.Uri requestUri()
        Specified by:
        requestUri in interface swim.api.http.HttpUplink
      • request

        public final swim.http.HttpRequest<?> request()
        Specified by:
        request in interface swim.api.http.HttpUplink
      • isConnected

        public boolean isConnected()
        Specified by:
        isConnected in interface swim.api.http.HttpUplink
        Specified by:
        isConnected in interface swim.api.Link
      • isRemote

        public boolean isRemote()
        Specified by:
        isRemote in interface swim.api.http.HttpUplink
        Specified by:
        isRemote in interface swim.api.Link
      • isSecure

        public boolean isSecure()
        Specified by:
        isSecure in interface swim.api.http.HttpUplink
        Specified by:
        isSecure in interface swim.api.Link
      • securityProtocol

        public String securityProtocol()
        Specified by:
        securityProtocol in interface swim.api.http.HttpUplink
        Specified by:
        securityProtocol in interface swim.api.Link
      • cipherSuite

        public String cipherSuite()
        Specified by:
        cipherSuite in interface swim.api.http.HttpUplink
        Specified by:
        cipherSuite in interface swim.api.Link
      • localAddress

        public InetSocketAddress localAddress()
        Specified by:
        localAddress in interface swim.api.http.HttpUplink
        Specified by:
        localAddress in interface swim.api.Link
      • localIdentity

        public swim.api.auth.Identity localIdentity()
        Specified by:
        localIdentity in interface swim.api.http.HttpUplink
        Specified by:
        localIdentity in interface swim.api.Link
      • localPrincipal

        public Principal localPrincipal()
        Specified by:
        localPrincipal in interface swim.api.http.HttpUplink
        Specified by:
        localPrincipal in interface swim.api.Link
      • localCertificates

        public Collection<Certificate> localCertificates()
        Specified by:
        localCertificates in interface swim.api.http.HttpUplink
        Specified by:
        localCertificates in interface swim.api.Link
      • remoteAddress

        public InetSocketAddress remoteAddress()
        Specified by:
        remoteAddress in interface swim.api.http.HttpUplink
        Specified by:
        remoteAddress in interface swim.api.Link
      • remoteIdentity

        public swim.api.auth.Identity remoteIdentity()
        Specified by:
        remoteIdentity in interface swim.api.http.HttpUplink
        Specified by:
        remoteIdentity in interface swim.api.Link
      • remotePrincipal

        public Principal remotePrincipal()
        Specified by:
        remotePrincipal in interface swim.api.http.HttpUplink
        Specified by:
        remotePrincipal in interface swim.api.Link
      • remoteCertificates

        public Collection<Certificate> remoteCertificates()
        Specified by:
        remoteCertificates in interface swim.api.http.HttpUplink
        Specified by:
        remoteCertificates in interface swim.api.Link
      • stage

        public abstract swim.concurrent.Stage stage()
      • observe

        public HttpUplinkModem observe​(Object observer)
        Specified by:
        observe in interface swim.api.http.HttpUplink
        Specified by:
        observe in interface swim.api.Link
        Specified by:
        observe in interface swim.observable.Observable<Object>
      • unobserve

        public HttpUplinkModem unobserve​(Object observer)
        Specified by:
        unobserve in interface swim.api.http.HttpUplink
        Specified by:
        unobserve in interface swim.api.Link
        Specified by:
        unobserve in interface swim.observable.Observable<Object>
      • decodeRequest

        public abstract swim.codec.Decoder<Object> decodeRequest​(swim.http.HttpRequest<?> request)
        Specified by:
        decodeRequest in interface HttpContext
      • willRequest

        public abstract void willRequest​(swim.http.HttpRequest<?> request)
        Specified by:
        willRequest in interface HttpContext
      • didRequest

        public abstract void didRequest​(swim.http.HttpRequest<Object> request)
        Specified by:
        didRequest in interface HttpContext
      • willRespond

        public abstract void willRespond​(swim.http.HttpResponse<?> response)
        Specified by:
        willRespond in interface HttpContext
      • writeResponse

        public void writeResponse​(swim.http.HttpResponse<?> response)
      • didRespond

        public abstract void didRespond​(swim.http.HttpResponse<?> response)
        Specified by:
        didRespond in interface HttpContext
      • close

        public void close()
        Specified by:
        close in interface swim.api.http.HttpUplink
        Specified by:
        close in interface swim.api.Link
      • trace

        public void trace​(Object message)
        Specified by:
        trace in interface swim.api.http.HttpUplink
        Specified by:
        trace in interface swim.api.Link
        Specified by:
        trace in interface swim.util.Log
      • debug

        public void debug​(Object message)
        Specified by:
        debug in interface swim.api.http.HttpUplink
        Specified by:
        debug in interface swim.api.Link
        Specified by:
        debug in interface swim.util.Log
      • info

        public void info​(Object message)
        Specified by:
        info in interface swim.api.http.HttpUplink
        Specified by:
        info in interface swim.api.Link
        Specified by:
        info in interface swim.util.Log
      • warn

        public void warn​(Object message)
        Specified by:
        warn in interface swim.api.http.HttpUplink
        Specified by:
        warn in interface swim.api.Link
        Specified by:
        warn in interface swim.util.Log
      • error

        public void error​(Object message)
        Specified by:
        error in interface swim.api.http.HttpUplink
        Specified by:
        error in interface swim.api.Link
        Specified by:
        error in interface swim.util.Log