|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.servlet.HostnameFilter
public class HostnameFilter
Filter that resolves the requester hostname.
Constructor Summary | |
---|---|
HostnameFilter()
|
Method Summary | |
---|---|
void |
destroy()
Destroys the filter. |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Resolves the requester hostname and delegates the request to the chain. |
static String |
get()
Returns the requester hostname. |
void |
init(javax.servlet.FilterConfig config)
Initializes the filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HostnameFilter()
Method Detail |
---|
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
config
- filter configuration.
javax.servlet.ServletException
- thrown if the filter could not be initialized.public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
get()
method.
doFilter
in interface javax.servlet.Filter
request
- servlet request.response
- servlet response.chain
- filter chain.
IOException
- thrown if an IO error occurrs.
javax.servlet.ServletException
- thrown if a servet error occurrs.public static String get()
public void destroy()
destroy
in interface javax.servlet.Filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |