|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.faces.bridge.context.url.internal.BridgeURLBase
public abstract class BridgeURLBase
This is a utility class used only by ExternalContextImpl that represents a URL with attributes that the
Bridge Spec is concerned with. The getter methods in this class make heavy use of lazy-initialization for performance
reasons, because it is unlikely that every method will be called.
| Field Summary | |
|---|---|
protected BridgeContext |
bridgeContext
|
protected BridgeURI |
bridgeURI
|
protected static String |
RELATIVE_PATH_PREFIX
|
protected String |
viewId
|
| Constructor Summary | |
|---|---|
BridgeURLBase(BridgeContext bridgeContext,
BridgeURI bridgeURI,
String viewId)
|
|
| Method Summary | |
|---|---|
protected String |
_toString(boolean modeChanged)
|
protected String |
_toString(boolean modeChanged,
Set<String> excludedParameterNames)
|
protected void |
copyParameters(String fromURL,
javax.portlet.BaseURL toURL)
Copies any query paramters present in the specified "from" URL to the specified "to" URL. |
protected javax.portlet.PortletURL |
createActionURL(String fromURL)
|
protected javax.portlet.ResourceURL |
createPartialActionURL(String fromURL)
|
protected javax.portlet.PortletURL |
createRenderURL(String fromURL)
|
protected javax.portlet.ResourceURL |
createResourceURL(String fromURL)
|
String |
getParameter(String name)
|
Map<String,String[]> |
getParameterMap()
|
protected String |
getViewIdParameterName()
|
boolean |
isFacesViewTarget()
|
boolean |
isSecure()
|
boolean |
isSelfReferencing()
|
protected boolean |
matchPathAndExtension(String file1,
String file2)
Determines whether or not the specified files have the same path (prefix) and extension (suffix). |
protected List<RequestParameter> |
parseRequestParameters(String url)
Parses the specified URL and returns a list of query parameters that are found. |
protected String |
removeParameter(String name)
|
void |
setParameter(String name,
String value)
|
void |
setParameter(String name,
String[] value)
|
protected void |
setPortletModeParameter(String portletMode,
javax.portlet.PortletURL portletURL)
|
protected void |
setRenderParameters(javax.portlet.BaseURL baseURL)
|
void |
setSecure(boolean secure)
|
protected void |
setSecureParameter(String secure,
javax.portlet.BaseURL baseURL)
|
void |
setSelfReferencing(boolean selfReferencing)
|
protected void |
setWindowStateParameter(String windowState,
javax.portlet.PortletURL portletURL)
|
protected abstract javax.portlet.BaseURL |
toBaseURL()
Returns a BaseURL representation of the bridge URL. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String RELATIVE_PATH_PREFIX
protected BridgeURI bridgeURI
protected String viewId
protected BridgeContext bridgeContext
| Constructor Detail |
|---|
public BridgeURLBase(BridgeContext bridgeContext,
BridgeURI bridgeURI,
String viewId)
| Method Detail |
|---|
public String toString()
toString in interface BridgeURLtoString in class Object
protected abstract javax.portlet.BaseURL toBaseURL()
throws MalformedURLException
BaseURL representation of the bridge URL.
MalformedURLExceptionprotected String _toString(boolean modeChanged)
protected String _toString(boolean modeChanged,
Set<String> excludedParameterNames)
protected void copyParameters(String fromURL,
javax.portlet.BaseURL toURL)
throws MalformedURLException
MalformedURLException
protected javax.portlet.PortletURL createActionURL(String fromURL)
throws MalformedURLException
MalformedURLException
protected javax.portlet.ResourceURL createPartialActionURL(String fromURL)
throws MalformedURLException
MalformedURLException
protected javax.portlet.PortletURL createRenderURL(String fromURL)
throws MalformedURLException
MalformedURLException
protected javax.portlet.ResourceURL createResourceURL(String fromURL)
throws MalformedURLException
MalformedURLException
protected boolean matchPathAndExtension(String file1,
String file2)
file1 - The first file to compare.file2 - The second file to compare.
true if the specified files have the same path (prefix) and extension (suffix), otherwise
false.
protected List<RequestParameter> parseRequestParameters(String url)
throws MalformedURLException
url - The URL to parse.
MalformedURLExceptionprotected String removeParameter(String name)
public boolean isSecure()
isSecure in interface BridgeURLpublic boolean isSelfReferencing()
isSelfReferencing in interface BridgeURLpublic String getParameter(String name)
getParameter in interface BridgeURL
public void setParameter(String name,
String[] value)
setParameter in interface BridgeURL
public void setParameter(String name,
String value)
setParameter in interface BridgeURLpublic Map<String,String[]> getParameterMap()
getParameterMap in interface BridgeURL
protected void setPortletModeParameter(String portletMode,
javax.portlet.PortletURL portletURL)
protected void setRenderParameters(javax.portlet.BaseURL baseURL)
public void setSecure(boolean secure)
setSecure in interface BridgeURL
protected void setSecureParameter(String secure,
javax.portlet.BaseURL baseURL)
public void setSelfReferencing(boolean selfReferencing)
setSelfReferencing in interface BridgeURLpublic boolean isFacesViewTarget()
isFacesViewTarget in interface BridgeURLprotected String getViewIdParameterName()
protected void setWindowStateParameter(String windowState,
javax.portlet.PortletURL portletURL)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||