|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for decoding URLS into pages and page events.
Generally, developers will implement this interface and PageEncoder on exactly the same class, since implementations of these are necessarily closely coupled. The interfaces are separated, though. This separation allows transitions from one encoding scheme to another to be handled properly.
PageDecoder instances are always tied to a specific servlet request, and should not be cached by users.
Method Summary | |
Page |
decodePage(java.lang.String fullPageName)
Returns the Page object for an string-encoded page name. |
PageEvent |
decodePageEvent(java.util.Dictionary parameters)
Returns the PageEvent object for a list of requested parameters. |
PageEvent |
decodePageEvent(java.lang.String queryString)
Returns the PageEvent object for a query string. |
Page |
decodeRequestedPage()
Returns the Page object for the current servlet request. |
PageEvent |
decodeRequestedPageEvent()
Returns the PageEvent object for the current servlet request, or null if there is no event. |
java.lang.String |
encodeParameter(java.lang.String key)
Given the logical name of a parameter, return the parameter key that was used in the URL. |
java.lang.String |
getRequestCharacterEncoding()
Gets the request character encoding, to be used to decode parameters. |
void |
setRequestCharacterEncoding(java.lang.String encoding)
Sets the request character encoding, to be used to decode parameters. |
Method Detail |
public Page decodeRequestedPage()
public Page decodePage(java.lang.String fullPageName)
fullPageName
- the encoded page namepublic PageEvent decodeRequestedPageEvent()
public PageEvent decodePageEvent(java.util.Dictionary parameters)
public PageEvent decodePageEvent(java.lang.String queryString)
public java.lang.String encodeParameter(java.lang.String key)
public java.lang.String getRequestCharacterEncoding()
public void setRequestCharacterEncoding(java.lang.String encoding) throws java.io.UnsupportedEncodingException
If set to null, the decoder will not attempt to convert the character set. As a consequence, do not set the encoding away from "null" when using a servlet engine that implements this automatically. (For example, Servlet 2.3 API if ServletRequest.setCharacterEncoding() is called).
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |