se.kmr.scam.client.http.command.response
Class Redirect

java.lang.Object
  extended byse.kmr.scam.client.http.CommandResponse
      extended byse.kmr.scam.client.http.command.response.Redirect

public class Redirect
extends CommandResponse

Represents a redirect request.

Version:
$Revision: 1.10 $
Author:
Jöran
Created:
den 6 november 2002

Field Summary
 
Fields inherited from class se.kmr.scam.client.http.CommandResponse
BREAK, CONTINUE
 
Constructor Summary
Redirect(HttpServletRequest request, HttpServletResponse response, Map args)
          Constructor for the (internal) Redirect object
Redirect(HttpServletRequest request, HttpServletResponse response, String url)
          Constructor for the Redirect object
 
Method Summary
 void execute()
          Execute the redirection.
 
Methods inherited from class se.kmr.scam.client.http.CommandResponse
getStatus, setStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Redirect

public Redirect(HttpServletRequest request,
                HttpServletResponse response,
                String url)
Constructor for the Redirect object

Parameters:
request - request object
response - response object

Redirect

public Redirect(HttpServletRequest request,
                HttpServletResponse response,
                Map args)
Constructor for the (internal) Redirect object

Parameters:
request - request object
response - response object
args - arguments (query strings)
Method Detail

execute

public void execute()
             throws HttpException
Execute the redirection.

Specified by:
execute in class CommandResponse
Throws:
HttpException - thrown in case of exception in redirecting the request.


Copyright © 2003 SCAM. All Rights Reserved.