info.magnolia.cms.util
Class RequestDispatchUtil

java.lang.Object
  extended by info.magnolia.cms.util.RequestDispatchUtil

public class RequestDispatchUtil
extends Object

Provides support for a simple syntax form of doing redirects and forwards. You pass it a url prefixed with either "redirect:", "permanent:" or "forward:". The context path is added to the url.

Version:
$Id$

Field Summary
static String FORWARD_PREFIX
           
static String PERMANENT_PREFIX
           
static String REDIRECT_PREFIX
           
 
Constructor Summary
RequestDispatchUtil()
           
 
Method Summary
static boolean dispatch(String targetUri, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Returns true if processing took place, even if it fails.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REDIRECT_PREFIX

public static final String REDIRECT_PREFIX
See Also:
Constant Field Values

PERMANENT_PREFIX

public static final String PERMANENT_PREFIX
See Also:
Constant Field Values

FORWARD_PREFIX

public static final String FORWARD_PREFIX
See Also:
Constant Field Values
Constructor Detail

RequestDispatchUtil

public RequestDispatchUtil()
Method Detail

dispatch

public static boolean dispatch(String targetUri,
                               javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response)
Returns true if processing took place, even if it fails.



Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.