org.hippoecm.hst.core.container
Class NoContentValve

java.lang.Object
  extended by org.hippoecm.hst.core.container.NoContentValve
All Implemented Interfaces:
Valve

public class NoContentValve
extends Object
implements Valve

NoContentValve When this valve is used, it does not make sense to also have valves that write content to the HttpServletResponse since this valve sets servletResponse.setStatus(HttpServletResponse.SC_NO_CONTENT)


Constructor Summary
NoContentValve()
           
 
Method Summary
 void destroy()
          Called by the container to indicate to a valve that the valve is being taken out of service
 void initialize()
          Initialize the valve before using in a pipeline.
 void invoke(ValveContext context)
          Invoke this valve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoContentValve

public NoContentValve()
Method Detail

invoke

public void invoke(ValveContext context)
            throws ContainerException
Description copied from interface: Valve
Invoke this valve

Specified by:
invoke in interface Valve
Throws:
ContainerException

initialize

public void initialize()
                throws ContainerException
Description copied from interface: Valve
Initialize the valve before using in a pipeline.

Specified by:
initialize in interface Valve
Throws:
ContainerException

destroy

public void destroy()
Description copied from interface: Valve
Called by the container to indicate to a valve that the valve is being taken out of service

Specified by:
destroy in interface Valve


Copyright © 2008-2012 Hippo. All Rights Reserved.