info.magnolia.cms.util
Class RequestDispatchUtil

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

public class RequestDispatchUtil
extends java.lang.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.

Author:
tmattsson

Field Summary
static java.lang.String FORWARD_PREFIX
           
static java.lang.String PERMANENT_PREFIX
           
static java.lang.String REDIRECT_PREFIX
           
 
Constructor Summary
RequestDispatchUtil()
           
 
Method Summary
static boolean dispatch(java.lang.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 java.lang.String REDIRECT_PREFIX
See Also:
Constant Field Values

PERMANENT_PREFIX

public static final java.lang.String PERMANENT_PREFIX
See Also:
Constant Field Values

FORWARD_PREFIX

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

RequestDispatchUtil

public RequestDispatchUtil()
Method Detail

dispatch

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



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