- java.lang.Object
-
- swim.runtime.AbstractUplinkContext
-
- swim.runtime.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 HttpBindinglinkBindingprotected ValuelinkKey-
Fields inherited from class swim.runtime.AbstractUplinkContext
observers
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpUplinkModem(HttpBinding linkBinding)protectedHttpUplinkModem(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 voiddidRequest(HttpRequest<Object> request)abstract voiddidRespond(HttpResponse<?> response)abstract voiddoRespond(HttpRequest<Object> request)UrihostUri()UrilaneUri()HttpBindinglinkBinding()ValuelinkKey()HttpBindinglinkWrapper()UrinodeUri()HttpUplinkModemobserve(Object observer)voidopenMetaUplink(LinkBinding uplink, NodeBinding metaUplink)HttpRequest<?>request()UrirequestUri()HttpUplinkModemunobserve(Object observer)abstract voidwillRequest(HttpRequest<?> request)abstract voidwillRespond(HttpResponse<?> response)voidwriteResponse(HttpResponse<?> response)-
Methods inherited from class swim.runtime.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.runtime.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:
linkWrapperin interfaceHttpContext- Specified by:
linkWrapperin interfaceLinkContext- Specified by:
linkWrapperin classAbstractUplinkContext
-
linkBinding
public final HttpBinding linkBinding()
- Specified by:
linkBindingin classAbstractUplinkContext
-
hostUri
public final Uri hostUri()
- Specified by:
hostUriin interfaceLink- Specified by:
hostUriin classAbstractUplinkContext
-
nodeUri
public final Uri nodeUri()
- Specified by:
nodeUriin interfaceLink- Specified by:
nodeUriin classAbstractUplinkContext
-
laneUri
public final Uri laneUri()
- Specified by:
laneUriin interfaceLink- Specified by:
laneUriin classAbstractUplinkContext
-
linkKey
public final Value linkKey()
- Specified by:
linkKeyin interfaceLinkContext- Specified by:
linkKeyin classAbstractUplinkContext
-
requestUri
public final Uri requestUri()
- Specified by:
requestUriin interfaceHttpLink
-
request
public final HttpRequest<?> request()
- Specified by:
requestin interfaceHttpUplink
-
observe
public HttpUplinkModem observe(Object observer)
- Specified by:
observein interfaceHttpLink- Specified by:
observein interfaceHttpUplink- Specified by:
observein interfaceLink- Specified by:
observein interfaceObservable<Object>- Specified by:
observein interfaceUplink- Overrides:
observein classAbstractUplinkContext
-
unobserve
public HttpUplinkModem unobserve(Object observer)
- Specified by:
unobservein interfaceHttpLink- Specified by:
unobservein interfaceHttpUplink- Specified by:
unobservein interfaceLink- Specified by:
unobservein interfaceObservable<Object>- Specified by:
unobservein interfaceUplink- Overrides:
unobservein classAbstractUplinkContext
-
decodeRequest
public abstract Decoder<Object> decodeRequest(HttpRequest<?> request)
- Specified by:
decodeRequestin interfaceHttpContext
-
willRequest
public abstract void willRequest(HttpRequest<?> request)
- Specified by:
willRequestin interfaceHttpContext
-
didRequest
public abstract void didRequest(HttpRequest<Object> request)
- Specified by:
didRequestin interfaceHttpContext
-
doRespond
public abstract void doRespond(HttpRequest<Object> request)
- Specified by:
doRespondin interfaceHttpContext
-
willRespond
public abstract void willRespond(HttpResponse<?> response)
- Specified by:
willRespondin interfaceHttpContext
-
writeResponse
public void writeResponse(HttpResponse<?> response)
-
didRespond
public abstract void didRespond(HttpResponse<?> response)
- Specified by:
didRespondin interfaceHttpContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplinkin interfaceLinkContext
-
-