|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.activityspace.Redirect
public class Redirect
This object allows IControls to specify an AActivitySpace, IDisplayPage, or IControl to redirect to. Currently, only AActivitySpaces and IDisplayPages are implemented.
Constructor Summary | |
---|---|
Redirect()
Creates a new Redirect object. |
Method Summary | |
---|---|
void |
AddControlArgument(java.lang.String strName)
This method allows you to add a control argument to the HTML URL with no value. |
void |
AddControlArgument(java.lang.String strName,
boolean bValue)
This method allows you to add a control argument to the HTML URL. |
void |
AddControlArgument(java.lang.String strName,
int nValue)
This method allows you to add a control argument to the HTML URL. |
void |
AddControlArgument(java.lang.String name,
java.lang.String value)
Optionally set single String arguments for the IControl. |
void |
AddControlArgument(java.lang.String name,
java.lang.String[] values)
Optionally set String[] arguments for the IControl. |
void |
AddControlArguments(XPHashtable htArgs)
Adds a map of String name/String[] values pairs to the redirect (overwriting previous versions) |
boolean |
GetCachedNoID()
Returns whether to look in the cache for an instance of this space (not a particular instance). |
java.lang.String |
GetControl()
Return the name of the IControl. |
java.lang.String |
GetControlArgument(java.lang.String strName)
Return the value of the specified control argument. |
XPHashtable |
GetControlArguments()
Return a map of the IControl arguments in String name/String[] values pairs. |
java.lang.String |
GetDisplayPage()
Return the name of the IDisplayPage. |
java.lang.String |
GetExternalURL()
This method returns the external URL to do a 302 redirect on. |
boolean |
GetIsErrorRedirect()
This method returns whether or not this redirect should be handled as an error bounce by the Interpreter. |
boolean |
GetIsExternalURL()
This method returns whether this is an internal redirect to an Activity Space (potentially a server redirect or a 302 redirect) or an external 302 redirect to another web site. |
boolean |
GetIsHTTPRedirect()
This method returns whether or not this redirect should be handled as a true 302 redirect or an internal server redirect. |
java.lang.String |
GetParentSpaceID()
Returns the ID of the parent activity space of this space. |
java.lang.String |
GetParentSpaceName()
Returns the name of the parent activity space of this space. |
java.lang.String |
GetQueryString()
Returns a query string for the redirect containing all the control arguments. |
java.lang.String |
GetSpaceID()
Return the ID of the AActivitySpace. |
java.lang.String |
GetSpaceName()
Return the name of the AActivitySpace. |
boolean |
GetStripParentSpace()
Gets whether or not to strip the parent space arguments from the URL. |
java.lang.String |
GetSubSpaceKey()
Returns the Sub-space key. |
void |
RemoveControlArgument(java.lang.String name)
Optionally remove single arguments for the IControl. |
void |
SetControl(java.lang.String control)
Optionally set the name of an IControl to redirect to. |
void |
SetDisplayPage(java.lang.String page)
Optionally set the name of an IDisplayPage to redirect to. |
void |
SetIsErrorRedirect(boolean bRedirect)
This method sets whether or not this redirect should be handled as an error bounce by the Interpreter. |
void |
SetIsHTTPRedirect(boolean bHTTPRedirect)
This method sets whether or not this redirect should be handled as a true 302 redirect or an internal server redirect. |
boolean |
SetLinkCreateNewSpace(java.lang.String strSpace,
AActivitySpace parent)
This method creates a brand new AActivitySpace. |
boolean |
SetLinkGetCachedSpace(AActivitySpace space)
This constructor takes a specific space and returns a link to that (including space ID) |
boolean |
SetLinkGetSpaceIfCached(java.lang.String strSpace,
AActivitySpace parent)
This method gets a named AActivitySpace from the cache if it is there, or creates a new one if it is not in the cache. |
boolean |
SetLinkToExternalURL(java.lang.String strExternalURL)
This method sets the Redirect to do a true HTTP 302 redirect to an external URL. |
void |
SetStripParentSpace(boolean bStrip)
Sets whether or not to strip the parent space arguments from the URL. |
void |
SetSubSpaceKey(java.lang.String sSubSpaceKey)
This method sets the sub space key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Redirect()
Method Detail |
---|
public void AddControlArgument(java.lang.String name, java.lang.String value)
AddControlArgument
in interface ILink
name
- the name of the argumentvalue
- the value of the argumentpublic void AddControlArgument(java.lang.String name, java.lang.String[] values)
AddControlArgument
in interface ILink
name
- the name of the argumentvalues
- the value of the argumentpublic void AddControlArgument(java.lang.String strName, int nValue)
AddControlArgument
in interface ILink
strName
- nValue
- ILink.AddControlArgument(String, String)
public void AddControlArgument(java.lang.String strName, boolean bValue)
AddControlArgument
in interface ILink
strName
- booleanValue
- ILink.AddControlArgument(String, String)
public void AddControlArgument(java.lang.String strName)
AddControlArgument
in interface ILink
strName
- booleanValue
- ILink.AddControlArgument(String, String)
public void AddControlArguments(XPHashtable htArgs)
XPHashtable
- the control arguments in String name/String[] values pairspublic boolean GetIsExternalURL()
public java.lang.String GetExternalURL()
public boolean GetCachedNoID()
public java.lang.String GetControl()
public java.lang.String GetControlArgument(java.lang.String strName)
String
- the name of the argument to getpublic XPHashtable GetControlArguments()
public java.lang.String GetDisplayPage()
public java.lang.String GetParentSpaceID()
public java.lang.String GetParentSpaceName()
public java.lang.String GetQueryString()
public boolean GetIsErrorRedirect()
public boolean GetIsHTTPRedirect()
public java.lang.String GetSpaceID()
public java.lang.String GetSpaceName()
public java.lang.String GetSubSpaceKey()
public void SetSubSpaceKey(java.lang.String sSubSpaceKey)
SetSubSpaceKey
in interface ILink
String
- the sub space keypublic void SetControl(java.lang.String control)
SetControl
in interface ILink
String
- the name of the control to redirect to.public void SetDisplayPage(java.lang.String page)
SetDisplayPage
in interface ILink
page
- the name of the page to link topublic void SetIsErrorRedirect(boolean bRedirect)
boolean
- true implies is an error redirectpublic void SetIsHTTPRedirect(boolean bHTTPRedirect)
boolean
- true implies is a 302 redirect, and will cause a
roundtrip from the browser to redirect.public boolean SetLinkCreateNewSpace(java.lang.String strSpace, AActivitySpace parent)
SetLinkCreateNewSpace
in interface ILink
String
- strSpaceAActivitySpace
- parent
ILink.SetLinkCreateNewSpace(String, AActivitySpace)
public boolean SetLinkGetCachedSpace(AActivitySpace space)
SetLinkGetCachedSpace
in interface ILink
AActivitySpace
- space
ILink.SetLinkGetCachedSpace(AActivitySpace)
public boolean SetLinkGetSpaceIfCached(java.lang.String strSpace, AActivitySpace parent)
SetLinkGetSpaceIfCached
in interface ILink
String
- strSpaceAActivitySpace
- parent
ILink.SetLinkGetSpaceIfCached(String, AActivitySpace)
public boolean SetLinkToExternalURL(java.lang.String strExternalURL)
SetLinkToExternalURL
in interface ILink
String
- strExternalURL
public void RemoveControlArgument(java.lang.String name)
public void SetStripParentSpace(boolean bStrip)
public boolean GetStripParentSpace()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |