wicket
Class AbortWithHttpStatusException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by wicket.AbortException
                  extended by wicket.AbortWithHttpStatusException
All Implemented Interfaces:
java.io.Serializable

Deprecated. moves to package wicket.protocol.http.servlet in 2.0

public class AbortWithHttpStatusException
extends AbortException

Causes Wicket to abort processing and set the specified HTTP status code. An IllegalStateException will be thrown if HTTP status code could not be set and the optional parameter is specified as false. This exception can be thrown from a page or a resource.

Author:
Igor Vaynberg (ivaynberg), Gili Tzabari
See Also:
HttpServletResponse, Serialized Form

Constructor Summary
AbortWithHttpStatusException(int status, boolean statusCodeOptional)
          Deprecated. Constructor
 
Method Summary
 int getStatus()
          Deprecated.  
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbortWithHttpStatusException

public AbortWithHttpStatusException(int status,
                                    boolean statusCodeOptional)
Deprecated. 
Constructor

Parameters:
status - The http response status code
statusCodeOptional - If true and http status could not be set, an IllegalStateException will be thrown
Method Detail

getStatus

public final int getStatus()
Deprecated. 
Returns:
the response status code


Copyright © 2004-2007 Wicket developers. All Rights Reserved.