com.fatwire.gst.foundation.httpstatus
Class HttpResponseStatusFilter

java.lang.Object
  extended by com.fatwire.gst.foundation.httpstatus.HttpResponseStatusFilter
All Implemented Interfaces:
javax.servlet.Filter
Direct Known Subclasses:
CustomHeaderFilter

public class HttpResponseStatusFilter
extends Object
implements javax.servlet.Filter

A response header filter sets the customer status headers from ContentServer.

Since:
16 June 2009
Author:
Daniel Iversen, Ram Sabnavis, Dolf Dijkstra

Constructor Summary
HttpResponseStatusFilter()
           
 
Method Summary
 void destroy()
          This method is called by application server at the shutdown and destroys filterConf object
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain)
          This method performs the filtering process on the response headers to set the custom headers in the response object and initiates the subsequent filter chain
 void init(javax.servlet.FilterConfig filterConf)
          This method is called by application server at the startup and initializes the FilterConfig object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResponseStatusFilter

public HttpResponseStatusFilter()
Method Detail

destroy

public void destroy()
This method is called by application server at the shutdown and destroys filterConf object

Specified by:
destroy in interface javax.servlet.Filter

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain filterChain)
              throws IOException,
                     javax.servlet.ServletException
This method performs the filtering process on the response headers to set the custom headers in the response object and initiates the subsequent filter chain

Specified by:
doFilter in interface javax.servlet.Filter
Parameters:
request - Request object
response - Response Object
filterChain - FilterChain Object
Throws:
IOException - , ServletException
javax.servlet.ServletException

init

public void init(javax.servlet.FilterConfig filterConf)
          throws javax.servlet.ServletException
This method is called by application server at the startup and initializes the FilterConfig object

Specified by:
init in interface javax.servlet.Filter
Parameters:
filterConf - FilterConfig object
Throws:
javax.servlet.ServletException


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.