Class LoggingUtils
java.lang.Object
org.apache.synapse.transport.http.conn.LoggingUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.http.impl.nio.DefaultNHttpClientConnectioncreateClientConnection(org.apache.http.nio.reactor.IOSession iosession, org.apache.http.HttpResponseFactory responseFactory, org.apache.http.nio.util.ByteBufferAllocator allocator, org.apache.http.params.HttpParams params) static org.apache.http.impl.nio.DefaultNHttpServerConnectioncreateServerConnection(org.apache.http.nio.reactor.IOSession iosession, org.apache.http.HttpRequestFactory requestFactory, org.apache.http.nio.util.ByteBufferAllocator allocator, org.apache.http.params.HttpParams params) static org.apache.http.nio.NHttpClientEventHandlerdecorate(org.apache.http.nio.NHttpClientEventHandler handler) static org.apache.http.nio.NHttpServerEventHandlerdecorate(org.apache.http.nio.NHttpServerEventHandler handler) static Patternstatic voidlogPendingCombinedAccess(org.apache.http.nio.NHttpConnection conn) Queues the combined access log entry held by the connection, if any.
-
Field Details
-
HEADER_LOG_ID
- See Also:
-
WIRE_LOG_ID
- See Also:
-
ACCESS_LOG_ID
- See Also:
-
-
Constructor Details
-
LoggingUtils
public LoggingUtils()
-
-
Method Details
-
decorate
public static org.apache.http.nio.NHttpClientEventHandler decorate(org.apache.http.nio.NHttpClientEventHandler handler) -
decorate
public static org.apache.http.nio.NHttpServerEventHandler decorate(org.apache.http.nio.NHttpServerEventHandler handler) -
createClientConnection
public static org.apache.http.impl.nio.DefaultNHttpClientConnection createClientConnection(org.apache.http.nio.reactor.IOSession iosession, org.apache.http.HttpResponseFactory responseFactory, org.apache.http.nio.util.ByteBufferAllocator allocator, org.apache.http.params.HttpParams params) -
getSkipLoggingMatcher
-
createServerConnection
public static org.apache.http.impl.nio.DefaultNHttpServerConnection createServerConnection(org.apache.http.nio.reactor.IOSession iosession, org.apache.http.HttpRequestFactory requestFactory, org.apache.http.nio.util.ByteBufferAllocator allocator, org.apache.http.params.HttpParams params) -
logPendingCombinedAccess
public static void logPendingCombinedAccess(org.apache.http.nio.NHttpConnection conn) Queues the combined access log entry held by the connection, if any. Called once the response body has been completely written (server) or read (client), or when the response has no body.- Parameters:
conn- - source or target connection
-