public abstract class AbstractTransport<REQUEST extends TransportRequest,RESPONSE extends TransportResponse> extends Object implements Transport<REQUEST,RESPONSE>
Modifier | Constructor and Description |
---|---|
protected |
AbstractTransport() |
public void init() throws Exception
init
in interface Transport<REQUEST extends TransportRequest,RESPONSE extends TransportResponse>
Exception
public void shutdown() throws Exception
shutdown
in interface Transport<REQUEST extends TransportRequest,RESPONSE extends TransportResponse>
Exception
protected TransportMessagingResponse execute(MessageEnvelope messageEnvelope, MessagingContainer messagingContainer, REQUEST request, RESPONSE response) throws Xdi2TransportException
Xdi2TransportException
public ExecutionContext createExecutionContext(REQUEST request, RESPONSE response)
createExecutionContext
in interface Transport<REQUEST extends TransportRequest,RESPONSE extends TransportResponse>
public Date getCurrent()
public String getCurrentAsString()
public Date getStartup()
public String getStartupAsString()
public long getStartupAsSeconds()
public boolean isInitialized()
public InterceptorList<Transport<?,?>> getInterceptors()
public void setInterceptors(InterceptorList<Transport<?,?>> interceptors)
public static boolean isResponseMessage(MessageEnvelope messageEnvelope)
public static Transport<?,?> getTransport(ExecutionContext executionContext)
public static void putTransport(ExecutionContext executionContext, Transport<?,?> transport)
public static TransportRequest getRequest(ExecutionContext executionContext)
public static void putRequest(ExecutionContext executionContext, TransportRequest request)
public static TransportResponse getResponse(ExecutionContext executionContext)
public static void putResponse(ExecutionContext executionContext, TransportResponse response)
Copyright © 2017. All rights reserved.