EAF 7.4 API

com.lutris.appserver.server.httpPresentation
Class ServerPageRedirectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by com.lutris.appserver.server.httpPresentation.PageRedirectException
              extended by com.lutris.appserver.server.httpPresentation.ServerPageRedirectException
All Implemented Interfaces:
java.io.Serializable

public class ServerPageRedirectException
extends PageRedirectException

Exception used to signal a page redirection internal to server.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.lutris.appserver.server.httpPresentation.PageRedirectException
encoding
 
Constructor Summary
ServerPageRedirectException(java.lang.String url)
          Constructor a server redirection exception.
ServerPageRedirectException(java.lang.String url, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
          Constructor of server redirection exception.
ServerPageRedirectException(java.lang.String url, java.lang.String encoding)
          Constructor of server redirection exception.
ServerPageRedirectException(java.lang.String url, java.lang.String encoding, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
          Constructor of server redirection exception.
 
Method Summary
 javax.servlet.http.HttpServletRequest getHttpServletRequest()
          Method returns the httpServletRequest to redirect
 javax.servlet.http.HttpServletResponse getHttpServletResponse()
          Method returns the httpServletResponse to redirect to
 void setHttpServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
          Method allows you to set the httpServletRequest to redirect
 void setHttpServletResponse(javax.servlet.http.HttpServletResponse httpServletResponse)
          Method allows you to set the httpServletResponse to redirect to
 
Methods inherited from class com.lutris.appserver.server.httpPresentation.PageRedirectException
addArgument, getEncoding, getUrl
 
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

ServerPageRedirectException

public ServerPageRedirectException(java.lang.String url)
Constructor a server redirection exception.

Parameters:
url - The url where the request should be redirected. It may have arguments encoded and/or they may be added with addArgument.
See Also:
PageRedirectException.addArgument(java.lang.String, java.lang.String)

ServerPageRedirectException

public ServerPageRedirectException(java.lang.String url,
                                   javax.servlet.http.HttpServletRequest httpServletRequest,
                                   javax.servlet.http.HttpServletResponse httpServletResponse)
Constructor of server redirection exception.

Parameters:
url - The url where the request should be redirected. It may have arguments encoded and/or they may be added with addArgument.
httpServletRequest - The httpServletRequest to redirect (if different then the one specified in HttpPresentationComms object).
httpServletResponse - The httpServletRequest to redirect to (if different then the one specified in HttpPresentationComms object).
See Also:
PageRedirectException.addArgument(java.lang.String, java.lang.String)

ServerPageRedirectException

public ServerPageRedirectException(java.lang.String url,
                                   java.lang.String encoding)
Constructor of server redirection exception.

Parameters:
url - The url where the request should be redirected. It may have arguments encoded and/or they may be added with addArgument.
encoding - character encoding to use
See Also:
PageRedirectException.addArgument(java.lang.String, java.lang.String)

ServerPageRedirectException

public ServerPageRedirectException(java.lang.String url,
                                   java.lang.String encoding,
                                   javax.servlet.http.HttpServletRequest httpServletRequest,
                                   javax.servlet.http.HttpServletResponse httpServletResponse)
Constructor of server redirection exception.

Parameters:
url - The url where the request should be redirected. It may have arguments encoded and/or they may be added with addArgument.
encoding - character encoding to use
httpServletRequest - The httpServletRequest to redirect (if different then the one specified in HttpPresentationComms object).
httpServletResponse - The httpServletRequest to redirect to (if different then the one specified in HttpPresentationComms object).
See Also:
PageRedirectException.addArgument(java.lang.String, java.lang.String)
Method Detail

setHttpServletRequest

public void setHttpServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
Method allows you to set the httpServletRequest to redirect

Parameters:
httpServletRequest - HttpServletRequest to redirect

getHttpServletRequest

public javax.servlet.http.HttpServletRequest getHttpServletRequest()
Method returns the httpServletRequest to redirect

Returns:
HttpServletRequest to redirect

setHttpServletResponse

public void setHttpServletResponse(javax.servlet.http.HttpServletResponse httpServletResponse)
Method allows you to set the httpServletResponse to redirect to

Parameters:
httpServletResponse - HttpServletResponse to redirect to

getHttpServletResponse

public javax.servlet.http.HttpServletResponse getHttpServletResponse()
Method returns the httpServletResponse to redirect to

Returns:
HttpServletResponse to redirect to

EAF 7.4 API