public class LogContextFilter extends Object implements javax.servlet.Filter
Modifier and Type | Field and Description |
---|---|
static String |
CTX_CORRELATION_ID
The identifier of asynchronous message.
|
static String |
CTX_PROCESS_ID
The identifier of process.
|
static String |
CTX_REQUEST_ID
The globally unique identifier of the current request.
|
static String |
CTX_REQUEST_URI
The URI of the current request.
|
static String |
CTX_SESSION_ID
The identifier of the current HTTP session.
|
static String |
CTX_SOURCE_SYSTEM
The identifier of source system.
|
Constructor and Description |
---|
LogContextFilter() |
Modifier and Type | Method and Description |
---|---|
static String |
createSessionLogId(String id)
Creates the session log id -> 3 characters + ***** + 4 characters.
|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
public static final String CTX_REQUEST_URI
public static final String CTX_REQUEST_ID
public static final String CTX_SESSION_ID
public static final String CTX_CORRELATION_ID
Note: unique is combination source system and correlationID but there is low probability that there will be two same correlationIDs.
public static final String CTX_SOURCE_SYSTEM
Note: source system that calls Integration Platform
public static final String CTX_PROCESS_ID
Note: process ID serves for pairing more requests with one process.
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.