javax.servlet.Filter@Private
public class KMSMDCFilter
extends java.lang.Object
implements javax.servlet.Filter
| Constructor | Description |
|---|---|
KMSMDCFilter() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
destroy() |
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
|
static java.lang.String |
getMethod() |
|
static java.lang.String |
getRemoteClientAddress() |
|
static org.apache.hadoop.security.UserGroupInformation |
getUgi() |
|
static java.lang.String |
getURL() |
|
void |
init(javax.servlet.FilterConfig config) |
|
static void |
setContext(org.apache.hadoop.security.UserGroupInformation ugi,
java.lang.String method,
java.lang.String requestURL,
java.lang.String remoteAddr) |
Sets the context with the given parameters.
|
public static org.apache.hadoop.security.UserGroupInformation getUgi()
public static java.lang.String getMethod()
public static java.lang.String getURL()
public static java.lang.String getRemoteClientAddress()
public void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.Filterjava.io.IOExceptionjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filter@VisibleForTesting
public static void setContext(org.apache.hadoop.security.UserGroupInformation ugi,
java.lang.String method,
java.lang.String requestURL,
java.lang.String remoteAddr)
ugi - the UserGroupInformation for the current request.method - the http methodrequestURL - the requested URL.remoteAddr - the remote address of the client.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.