org.apache.geronimo.console.gbean
Class ContextForwardGBean

java.lang.Object
  extended by org.apache.geronimo.console.gbean.ContextForwardGBean
All Implemented Interfaces:
ContextForward

public class ContextForwardGBean
extends Object
implements ContextForward

A GBean that implements ContextForward. This way any Geronimo module can add forwards to the console.


Field Summary
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
ContextForwardGBean(String portalPathPrefix, String portletContextPath, String portletServletPath)
           
 
Method Summary
static GBeanInfo getGBeanInfo()
           
 String getPortalPathPrefix()
          Gets the prefix for the portal servlet's path that should be forwarded according to this definition.
 String getPortletContextPath()
          Gets the context root that this request should forward to ("myportlet" in the example above).
 String getPortletServletPath()
          Gets the servlet path that this request should forward to in the destination context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

ContextForwardGBean

public ContextForwardGBean(String portalPathPrefix,
                           String portletContextPath,
                           String portletServletPath)
Method Detail

getPortalPathPrefix

public String getPortalPathPrefix()
Description copied from interface: ContextForward
Gets the prefix for the portal servlet's path that should be forwarded according to this definition. This is "myimages/" in the example above.

Specified by:
getPortalPathPrefix in interface ContextForward

getPortletContextPath

public String getPortletContextPath()
Description copied from interface: ContextForward
Gets the context root that this request should forward to ("myportlet" in the example above).

Specified by:
getPortletContextPath in interface ContextForward

getPortletServletPath

public String getPortletServletPath()
Description copied from interface: ContextForward
Gets the servlet path that this request should forward to in the destination context. Any data after the servlet path and portal path prefix in the original URL will be appended to the portlet context path and servlet path to construct the destination URL.

Specified by:
getPortletServletPath in interface ContextForward

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.