oracle.cabo.share.url
Interface URLEncoder
- All Known Subinterfaces:
- PageEncoder
- All Known Implementing Classes:
- ServletURLEncoder, AgentURLEncoder
- public interface URLEncoder
Interface for the encoding of URLs.
Method Summary |
java.lang.String |
encodeParameter(java.lang.String key)
Given the logical name of a parameter, return the parameter
key that should be used in the URL. |
java.lang.String |
encodeURL(java.lang.String url)
Encode an URL. |
java.lang.String |
getDefaultURL()
|
encodeParameter
public java.lang.String encodeParameter(java.lang.String key)
- Given the logical name of a parameter, return the parameter
key that should be used in the URL. This function should not
be used for parameter values.
encodeURL
public java.lang.String encodeURL(java.lang.String url)
- Encode an URL.
getDefaultURL
public java.lang.String getDefaultURL()
- Returns:
- this is an URL to the current page. This is useful, for example,
in a form submission; if the destination of a form has not been set, this
default URL can be used to submit the form back to the page it originated
from.