|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BridgeURL
This interface represents a bridge URL, meaning a URL that has convenience methods for representing URLs according to Section 6.1.3.1 of the Bridge Spec.
| Method Summary | |
|---|---|
String |
getContextRelativePath()
Returns the context-relative path in the URL. |
String |
getParameter(String name)
Returns the value of the underlying getParameterMap() with the specified name. |
Map<String,String[]> |
getParameterMap()
Returns a mutable Map representing the URL parameters. |
Set<String> |
getParameterNames()
Returns a list of key names from the underlying getParameterMap(). |
Bridge.PortletPhase |
getPortletPhase()
Returns the Bridge.PortletPhase associated with this URL. |
boolean |
isAbsolute()
Determines whether or not the URL is absolute. |
boolean |
isEscaped()
Determines whether or not the URL is escaped. |
boolean |
isExternal()
Determines whether or not the URL is external. |
boolean |
isFacesViewTarget()
Determines whether or not the URL targets a Faces View. |
boolean |
isHierarchical()
Determines whether or not the URL is hierarchical, meaning it is either 1) absolute and the scheme-specific part begins with a forward-slash character, or 2) is relative. |
boolean |
isOpaque()
Determines whether or not the URL is opaque, meaning it is absolute and its scheme component does not begin with a forward-slash character. |
boolean |
isPathRelative()
Determines whether or not the path component of the URL is relative, meaning it does not begin with a forward-slash character. |
boolean |
isPortletScheme()
Determines whether or not the URL begins with the "portlet:" scheme. |
boolean |
isSecure()
Flag indicating whether or not the URL is secure. |
boolean |
isSelfReferencing()
Determines whether or not the URL is self-referencing, meaning, it targets the current Faces view. |
String |
removeParameter(String name)
Removes the value of the underlying getParameterMap() with the specified name. |
void |
setParameter(String name,
String value)
Sets the value of the underlying getParameterMap() according to the specified
name. |
void |
setParameter(String name,
String[] value)
Sets the value of the underlying getParameterMap() according to the specified
name. |
void |
setSecure(boolean secure)
Sets the flag indicating whether or not the URL is secure. |
void |
setSelfReferencing(boolean selfReferencing)
Sets the flag indicating whether or not the URL is self-referencing, meaning, whether or not it targets the current Faces view. |
String |
toString()
Returns a string-based representation of the URL. |
| Method Detail |
|---|
String removeParameter(String name)
getParameterMap() with the specified name.
String toString()
isEscaped() returns true then the value
returned by this method will contain escaped characters.
toString in class ObjectString getContextRelativePath()
UIViewRoot) is returned.
boolean isEscaped()
true if all occurrences of the ampersand character appear as & otherwise, returns
false.boolean isAbsolute()
true if absolute, otherwise falseboolean isOpaque()
URI.isOpaque().
true if the URL is opaque, otherwise false.boolean isPathRelative()
true if the path is relative, otherwise false.boolean isPortletScheme()
true if the URL begins with the "portlet:" scheme, otherwise false.boolean isSecure()
BaseURL.setSecure(boolean).
true if the URL is secure, otherwise false.boolean isSelfReferencing()
true if self-referencing, otherwise false.boolean isExternal()
true if external, otherwise false.boolean isHierarchical()
true if the URL is hierarchical, otherwise false.String getParameter(String name)
getParameterMap() with the specified name.
void setParameter(String name,
String value)
value of the underlying getParameterMap() according to the specified
name.
void setParameter(String name,
String[] value)
value of the underlying getParameterMap() according to the specified
name.
Map<String,String[]> getParameterMap()
Map representing the URL parameters.
Set<String> getParameterNames()
getParameterMap().
Bridge.PortletPhase getPortletPhase()
Bridge.PortletPhase associated with this URL. Note that the value will be null if the URL
does not begin with the "portlet:" scheme/prefix.
void setSecure(boolean secure)
secure - true if secure, otherwise false.void setSelfReferencing(boolean selfReferencing)
selfReferencing - true if self-referencing, otherwise false.boolean isFacesViewTarget()
true if the URL targets a Faces View, otherwise false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||