public.javadoc.org.spincast.core.exceptions.ForwardRouteException.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
ForwardRouteException (org.spincast:spincast-framework 1.0.0 API)
org.spincast.core.exceptions
Class ForwardRouteException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.spincast.core.exceptions.ResponseResetableExceptionDefault
-
- org.spincast.core.exceptions.ForwardRouteException
-
- All Implemented Interfaces:
- Serializable, ResponseResetableException
public class ForwardRouteException
extends ResponseResetableExceptionDefault
Exception that will forward the request to another route.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors
Constructor and Description
ForwardRouteException(String newRoute)
ForwardRouteException(String newRoute,
boolean resetResponse)
ForwardRouteException(String newRoute,
String message)
ForwardRouteException(String newRoute,
String message,
boolean resetResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
String
getNewRoute()
The new route to forward to.
-
Methods inherited from class org.spincast.core.exceptions.ResponseResetableExceptionDefault
isResetResponse
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
Constructor Detail
-
ForwardRouteException
public ForwardRouteException(String newRoute)
- Parameters:
newRoute
- The new route to forward to. This can be a
full URL or a path (+ potential queryString)
-
ForwardRouteException
public ForwardRouteException(String newRoute,
boolean resetResponse)
- Parameters:
newRoute
- The new route to forward to. This can be a
full URL or a path (+ potential queryString)
resetResponse
- If not already flushed, should the response be
reset before running the new route?
-
ForwardRouteException
public ForwardRouteException(String newRoute,
String message)
- Parameters:
newRoute
- The new route to forward to. This can be a
full URL or a path (+ potential queryString)
-
ForwardRouteException
public ForwardRouteException(String newRoute,
String message,
boolean resetResponse)
- Parameters:
newRoute
- The new route to forward to. This can be a
full URL or a path (+ potential queryString)
resetResponse
- If not already flushed, should the response be
reset before running the new route?
-
Method Detail
-
getNewRoute
public String getNewRoute()
The new route to forward to. This can be a
full URL or a path (+ potential queryString)
Copyright © 2019. All rights reserved.