|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.portlet.GenericURL
com.bea.portlet.PostbackURL
com.bea.portlet.WindowURL
com.bea.portlet.StandalonePortletURL
public class StandalonePortletURL
The StandalonePortletURL
helps create links to render
portlets in a separate window (such as a popup window).
GenericURL
Nested Class Summary | |
---|---|
static class |
StandalonePortletURL.ContentMode
Enumeration of valid values for the KEY_CONTENT_MODE parameter |
Field Summary | |
---|---|
static String |
KEY_ASYNC
|
static String |
KEY_CONTENT_MODE
|
static String |
KEY_CONTENT_ONLY
|
static String |
KEY_DEFAULT_WINDOW_ICON
|
static String |
KEY_DEFAULT_WINDOW_ICON_PATH
|
static String |
KEY_LAF_UNIQUE_ID
|
static String |
KEY_PORTAL_CONTENT_TYPE
|
static String |
KEY_PORTAL_ID
|
static String |
KEY_PORTAL_URL
|
static String |
KEY_PORTLET_INSTANCE_LABEL
|
static String |
KEY_SKELETON
|
static String |
KEY_SKELETON_CHROMOSOME
|
static String |
KEY_SKELETON_PATH
|
static String |
KEY_SKIN
|
static String |
KEY_SKIN_CHROMOSOME
|
static String |
KEY_SKIN_PATH
|
static String |
KEY_STREAMING
this attribute is true if the url is to a streamed portlet. |
static String |
KEY_THEME_ALT_SKELETON
|
static String |
KEY_THEME_ALT_SKIN
|
static String |
KEY_THEME_NAME
|
static String |
KEY_THEME_SKELETON_CHROMOSOME
|
static String |
KEY_THEME_SKIN_CHROMOSOME
|
static String |
KEY_TITLE
|
static String |
STREAMING_PORTLET_URL_PATTERN
Deprecated |
Fields inherited from class com.bea.portlet.GenericURL |
---|
COMMUNITY_ADMIN_FLAG_PARAM, COMMUNITY_DESKTOP, CONTROL_STATE_PARAM, CURRENT_PAGE, domain, DOMAIN, EVENT_NAME_PARAM, httpRequest, httpResponse, httpsDomain, LOADSTATE_PARAM, MODE_PARAM, PAGE_LABEL_PARAM, params, PATH, PORT, PORTLET_SUB_INSTANCE_ID, POSTBACK_PARAM, PREFIX, QUERY_STRING, SCHEME, SECURE_PORT, STATE_PARAM, TREE_OPTIMIZATION_PARAM, URL_COMPRESSION, WINDOW_LABEL_PARAM |
Constructor Summary | |
---|---|
protected |
StandalonePortletURL(HttpServletRequest httpRequest,
HttpServletResponse httpResponse)
Constructs a StandalonePortletURL. |
protected |
StandalonePortletURL(HttpServletRequest httpRequest,
HttpServletResponse httpResponse,
String windowLabel)
Constructs a StandalonePortletURL. |
Method Summary | |
---|---|
void |
addParameter(String name,
String value)
Add a parameter. |
void |
addParameter(String name,
String value,
boolean encodeName,
boolean encodeValue)
Add a parameter. |
protected StringBuffer |
appendPathWhenNull(StringBuffer buf,
HttpServletRequest httpRequest)
Deprecated As of 9.2 SP2, replaced by appendPathWhenNull |
Object |
clone()
Returns a deep copy. |
static StandalonePortletURL |
createStandalonePortletURL(HttpServletRequest httpRequest,
HttpServletResponse httpResponse)
Returns a StandalonePortletURL. |
static StandalonePortletURL |
createStandalonePortletURL(HttpServletRequest httpRequest,
HttpServletResponse httpResponse,
String windowLabel)
Returns a StandalonePortletURL. |
String |
getPortletServletName()
Deprecated |
void |
setContentMode(StandalonePortletURL.ContentMode contentMode)
Sets the content mode used to render the portlet. |
void |
setContentOnly(boolean contentOnly)
Set to true to render only the content of the portlet. |
void |
setDesktopStateShared(boolean desktopStateShared)
Deprecated Provided only for backward compatibility |
void |
setPortletServletName(String servletPortletName)
Deprecated |
void |
setPortletUri(String portletUri)
Used to create a "detached" Portlet. |
void |
setWindowLabel(String windowLabel)
Equivalent to using the three-argument factory method to create a URL. |
Methods inherited from class com.bea.portlet.WindowURL |
---|
createWindowURL, createWindowURL, getWindowLabel, getWindowMode, getWindowState, setWindowMode, setWindowState |
Methods inherited from class com.bea.portlet.PostbackURL |
---|
createPostbackURL |
Methods inherited from class com.bea.portlet.GenericURL |
---|
addParameter, appendEnsureSeparator, appendEnsureSeparator, createGenericURL, createQueryString, createQueryStringBuilder, getContextualPath, getDomain, getEncodeSession, getParameter, getParameters, getPathPrefix, getPort, getResolvedTemplate, getScheme, getSecurePort, getTemplate, getUrlType, removeParameter, setContextualPath, setDomain, setEncodeSession, setForcedAmpForm, setPath, setPathPrefix, setPort, setScheme, setSecurePort, setTemplate, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String KEY_STREAMING
public static final String KEY_LAF_UNIQUE_ID
public static final String KEY_TITLE
public static final String KEY_SKELETON
public static final String KEY_SKELETON_PATH
public static final String KEY_SKELETON_CHROMOSOME
public static final String KEY_SKIN
public static final String KEY_SKIN_PATH
public static final String KEY_SKIN_CHROMOSOME
public static final String KEY_DEFAULT_WINDOW_ICON
public static final String KEY_DEFAULT_WINDOW_ICON_PATH
public static final String KEY_THEME_NAME
public static final String KEY_THEME_ALT_SKELETON
public static final String KEY_THEME_ALT_SKIN
public static final String KEY_THEME_SKELETON_CHROMOSOME
public static final String KEY_THEME_SKIN_CHROMOSOME
public static final String KEY_PORTAL_URL
public static final String KEY_PORTAL_ID
public static final String KEY_PORTAL_CONTENT_TYPE
public static final String KEY_PORTLET_INSTANCE_LABEL
public static final String KEY_CONTENT_ONLY
public static final String KEY_CONTENT_MODE
public static final String KEY_ASYNC
public static final String STREAMING_PORTLET_URL_PATTERN
Constructor Detail |
---|
protected StandalonePortletURL(HttpServletRequest httpRequest, HttpServletResponse httpResponse)
Constructs a StandalonePortletURL.
httpRequest
- HTTP requesthttpResponse
- HTTP responseprotected StandalonePortletURL(HttpServletRequest httpRequest, HttpServletResponse httpResponse, String windowLabel)
Constructs a StandalonePortletURL.
httpRequest
- HTTP requesthttpResponse
- HTTP responsewindowLabel
- window labelMethod Detail |
---|
public static StandalonePortletURL createStandalonePortletURL(HttpServletRequest httpRequest, HttpServletResponse httpResponse)
Returns a StandalonePortletURL.
httpRequest
- HTTP requesthttpResponse
- HTTP response
public static StandalonePortletURL createStandalonePortletURL(HttpServletRequest httpRequest, HttpServletResponse httpResponse, String windowLabel)
Returns a StandalonePortletURL.
httpRequest
- HTTP requesthttpResponse
- HTTP responsewindowLabel
- window label
@Deprecated public void setPortletServletName(String servletPortletName)
@Deprecated public String getPortletServletName()
public void setContentOnly(boolean contentOnly)
public void setContentMode(StandalonePortletURL.ContentMode contentMode)
StandalonePortletURL.ContentMode.FRAGMENT
if not specified.
setContentOnly(boolean)
@Deprecated public void setDesktopStateShared(boolean desktopStateShared)
public void setWindowLabel(String windowLabel)
This method and the setPortletUri(String)
method are mutually exclusive
setWindowLabel
in class WindowURL
createStandalonePortletURL(HttpServletRequest, HttpServletResponse, String)
public void setPortletUri(String portletUri)
This method and the setWindowLabel(String)
method are mutually exclusive
portletUri
- Webapp-relative path to the .portlet filepublic Object clone()
Returns a deep copy.
clone
in class WindowURL
protected StringBuffer appendPathWhenNull(StringBuffer buf, HttpServletRequest httpRequest)
appendPathWhenNull
public void addParameter(String name, String value)
GenericURL
Add a parameter. Multiple values for the same parameter can be set by calling this method multiple times with the same name.
This method URL encodes the parameter name and value value.
addParameter
in class GenericURL
name
- namevalue
- valuepublic void addParameter(String name, String value, boolean encodeName, boolean encodeValue)
Add a parameter. Multiple values for the same parameter can be set by calling this method multiple times with the same name.
If the encodeName boolean argument is true, this method URL encodes the parameter name. If the encodeValue boolean argument is true, this method URL encodes the parameter value.
addParameter
in class GenericURL
name
- parameter's namevalue
- parameter's valueencodeName
- true if the parameter's name should be encodedencodeValue
- true if the parameter's value should be encoded
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |