List of usage examples for org.apache.http.nio NHttpConnection getContext
HttpContext getContext();
From source file:org.apache.synapse.transport.passthru.TargetContext.java
public static TargetContext get(NHttpConnection conn) { return (TargetContext) conn.getContext().getAttribute(CONNECTION_INFORMATION); }
From source file:org.apache.synapse.transport.passthru.TargetContext.java
public static ProtocolState getState(NHttpConnection conn) { TargetContext info = (TargetContext) conn.getContext().getAttribute(CONNECTION_INFORMATION); return info != null ? info.getState() : null; }
From source file:org.apache.synapse.transport.passthru.TargetContext.java
public static TargetRequest getRequest(NHttpConnection conn) { TargetContext info = (TargetContext) conn.getContext().getAttribute(CONNECTION_INFORMATION); return info != null ? info.getRequest() : null; }
From source file:org.apache.synapse.transport.passthru.TargetContext.java
public static TargetResponse getResponse(NHttpConnection conn) { TargetContext info = (TargetContext) conn.getContext().getAttribute(CONNECTION_INFORMATION); return info != null ? info.getResponse() : null; }
From source file:org.apache.synapse.transport.passthru.SourceContext.java
public static SourceContext get(NHttpConnection conn) { return (SourceContext) conn.getContext().getAttribute(CONNECTION_INFORMATION); }
From source file:org.apache.synapse.transport.passthru.SourceContext.java
public static ProtocolState getState(NHttpConnection conn) { SourceContext info = (SourceContext) conn.getContext().getAttribute(CONNECTION_INFORMATION); return info != null ? info.getState() : null; }
From source file:org.apache.synapse.transport.passthru.SourceContext.java
public static SourceRequest getRequest(NHttpConnection conn) { SourceContext info = (SourceContext) conn.getContext().getAttribute(CONNECTION_INFORMATION); return info != null ? info.getRequest() : null; }
From source file:org.apache.synapse.transport.passthru.SourceContext.java
public static SourceResponse getResponse(NHttpConnection conn) { SourceContext info = (SourceContext) conn.getContext().getAttribute(CONNECTION_INFORMATION); return info != null ? info.getResponse() : null; }
From source file:org.apache.synapse.transport.passthru.SourceContext.java
public static Lock getLock(NHttpConnection conn) { SourceContext info = (SourceContext) conn.getContext().getAttribute(CONNECTION_INFORMATION); return info != null ? info.getLock() : null; }
From source file:org.apache.synapse.transport.passthru.TargetContext.java
public static boolean assertState(NHttpConnection conn, ProtocolState state) { TargetContext info = (TargetContext) conn.getContext().getAttribute(CONNECTION_INFORMATION); return info != null && info.getState() == state; }