Package io.avaje.jex.http
Class RedirectResponse
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.avaje.jex.http.HttpResponseException
-
- io.avaje.jex.http.RedirectResponse
-
- All Implemented Interfaces:
Serializable
public class RedirectResponse extends HttpResponseException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RedirectResponse()Redirect with 302 http status code.RedirectResponse(int statusCode)Redirect with the given http status code.RedirectResponse(String message)Redirect with the given message.
-
Method Summary
-
Methods inherited from class io.avaje.jex.http.HttpResponseException
getDetails, getStatus
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RedirectResponse
public RedirectResponse(String message)
Redirect with the given message.
-
RedirectResponse
public RedirectResponse(int statusCode)
Redirect with the given http status code.
-
RedirectResponse
public RedirectResponse()
Redirect with 302 http status code.
-
-