- java.lang.Object
-
- swim.system.AbstractUplinkContext
-
- swim.system.http.HttpUplinkModem
-
- All Implemented Interfaces:
HttpLink
,HttpUplink
,Link
,Uplink
,Observable<Object>
,HttpContext
,LinkContext
,Log
- Direct Known Subclasses:
RestLaneUplink
public abstract class HttpUplinkModem extends AbstractUplinkContext implements HttpContext, HttpUplink
-
-
Field Summary
Fields Modifier and Type Field Description protected HttpBinding
linkBinding
protected Value
linkKey
-
Fields inherited from class swim.system.AbstractUplinkContext
observers
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpUplinkModem(HttpBinding linkBinding)
protected
HttpUplinkModem(HttpBinding linkBinding, Value linkKey)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Decoder<Object>
decodeRequest(HttpRequest<?> request)
abstract void
didRequest(HttpRequest<Object> request)
abstract void
didRespond(HttpResponse<?> response)
abstract void
doRespond(HttpRequest<Object> request)
Uri
hostUri()
Uri
laneUri()
HttpBinding
linkBinding()
Value
linkKey()
HttpBinding
linkWrapper()
Uri
nodeUri()
HttpUplinkModem
observe(Object observer)
void
openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
HttpRequest<?>
request()
Uri
requestUri()
HttpUplinkModem
unobserve(Object observer)
abstract void
willRequest(HttpRequest<?> request)
abstract void
willRespond(HttpResponse<?> response)
void
writeResponse(HttpResponse<?> response)
-
Methods inherited from class swim.system.AbstractUplinkContext
bottomLink, cellAddressUp, cipherSuite, cipherSuiteUp, close, closeUp, debug, debugUp, didClose, didCloseDown, didFail, didFailDown, didOpenDown, error, errorUp, fail, failUp, info, infoUp, isConnected, isConnectedUp, isRemote, isRemoteUp, isSecure, isSecureUp, laneBinding, localAddress, localAddressUp, localCertificates, localCertificatesUp, localIdentity, localIdentityUp, localPrincipal, localPrincipalUp, remoteAddress, remoteAddressUp, remoteCertificates, remoteCertificatesUp, remoteIdentity, remoteIdentityUp, remotePrincipal, remotePrincipalUp, securityProtocol, securityProtocolUp, stage, trace, traceUp, unwrapLink, warn, warnUp
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.api.Link
cipherSuite, close, isConnected, isRemote, isSecure, localAddress, localCertificates, localIdentity, localPrincipal, remoteAddress, remoteCertificates, remoteIdentity, remotePrincipal, securityProtocol
-
Methods inherited from interface swim.system.LinkContext
bottomLink, cellAddressUp, cipherSuiteUp, closeUp, debugUp, didCloseDown, didFailDown, didOpenDown, errorUp, failUp, infoUp, isConnectedUp, isRemoteUp, isSecureUp, localAddressUp, localCertificatesUp, localIdentityUp, localPrincipalUp, remoteAddressUp, remoteCertificatesUp, remoteIdentityUp, remotePrincipalUp, securityProtocolUp, traceUp, unwrapLink, warnUp
-
-
-
-
Field Detail
-
linkBinding
protected final HttpBinding linkBinding
-
linkKey
protected final Value linkKey
-
-
Constructor Detail
-
HttpUplinkModem
protected HttpUplinkModem(HttpBinding linkBinding, Value linkKey)
-
HttpUplinkModem
protected HttpUplinkModem(HttpBinding linkBinding)
-
-
Method Detail
-
linkWrapper
public final HttpBinding linkWrapper()
- Specified by:
linkWrapper
in interfaceHttpContext
- Specified by:
linkWrapper
in interfaceLinkContext
- Specified by:
linkWrapper
in classAbstractUplinkContext
-
linkBinding
public final HttpBinding linkBinding()
- Specified by:
linkBinding
in classAbstractUplinkContext
-
hostUri
public final Uri hostUri()
- Specified by:
hostUri
in interfaceLink
- Specified by:
hostUri
in classAbstractUplinkContext
-
nodeUri
public final Uri nodeUri()
- Specified by:
nodeUri
in interfaceLink
- Specified by:
nodeUri
in classAbstractUplinkContext
-
laneUri
public final Uri laneUri()
- Specified by:
laneUri
in interfaceLink
- Specified by:
laneUri
in classAbstractUplinkContext
-
linkKey
public final Value linkKey()
- Specified by:
linkKey
in interfaceLinkContext
- Specified by:
linkKey
in classAbstractUplinkContext
-
requestUri
public final Uri requestUri()
- Specified by:
requestUri
in interfaceHttpLink
-
request
public final HttpRequest<?> request()
- Specified by:
request
in interfaceHttpUplink
-
observe
public HttpUplinkModem observe(Object observer)
- Specified by:
observe
in interfaceHttpLink
- Specified by:
observe
in interfaceHttpUplink
- Specified by:
observe
in interfaceLink
- Specified by:
observe
in interfaceObservable<Object>
- Specified by:
observe
in interfaceUplink
- Overrides:
observe
in classAbstractUplinkContext
-
unobserve
public HttpUplinkModem unobserve(Object observer)
- Specified by:
unobserve
in interfaceHttpLink
- Specified by:
unobserve
in interfaceHttpUplink
- Specified by:
unobserve
in interfaceLink
- Specified by:
unobserve
in interfaceObservable<Object>
- Specified by:
unobserve
in interfaceUplink
- Overrides:
unobserve
in classAbstractUplinkContext
-
decodeRequest
public abstract Decoder<Object> decodeRequest(HttpRequest<?> request)
- Specified by:
decodeRequest
in interfaceHttpContext
-
willRequest
public abstract void willRequest(HttpRequest<?> request)
- Specified by:
willRequest
in interfaceHttpContext
-
didRequest
public abstract void didRequest(HttpRequest<Object> request)
- Specified by:
didRequest
in interfaceHttpContext
-
doRespond
public abstract void doRespond(HttpRequest<Object> request)
- Specified by:
doRespond
in interfaceHttpContext
-
willRespond
public abstract void willRespond(HttpResponse<?> response)
- Specified by:
willRespond
in interfaceHttpContext
-
writeResponse
public void writeResponse(HttpResponse<?> response)
-
didRespond
public abstract void didRespond(HttpResponse<?> response)
- Specified by:
didRespond
in interfaceHttpContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfaceLinkContext
-
-