oracle.cabo.servlet.url
Class JspPageEncoder
java.lang.Object
|
+--oracle.cabo.share.url.ServletURLEncoder
|
+--oracle.cabo.servlet.url.BasePageEncoder
|
+--oracle.cabo.servlet.url.DefaultPageEncoder
|
+--oracle.cabo.servlet.url.JspPageEncoder
- All Implemented Interfaces:
- PageDecoder, PageEncoder, URLEncoder
- public class JspPageEncoder
- extends DefaultPageEncoder
PageEncoder interface that implements a page encoding
scheme suitable for servlets. The page and its properties
are stored as a query parameter.
JSP Baja URL Structure
URLs are of the form:
http://somedomain.com:port/jspPath.jsp?bajaPage=pageName
$pageprop1=value1$pageprop2=value2
&event=eventname&eventparam1=value1&eventparam2=value2
Where:
- somedomain.com:port is the domain (and port number, if not 80)
of the location of the web server or servlet engine
- jspPath.jsp is the webserver path to the JSP controlling Baja.
- pageName is the name of the page (which may contain any
characters other than "$", including "/")
- pageprop1 and pageprop2 are the names of two page properties,
each with separate values (note that they are represented as if
they were directories). Properties and values are encoded with
standard URL encoding; in addition, "$" is encoded as "$$", and
"=" is encoded as "$=".
- The event name and all event parameters are stored as URL query
parameters
Method Summary |
protected java.lang.String |
assembleURL(java.lang.String baseURL,
java.lang.String pageName,
java.lang.String pageProperties,
java.lang.String parametersURL)
Assembles the four parts of a Baja URL into a full URL. |
protected java.lang.String |
decodeFullPageName()
Identifies the full page name for the current request. |
Methods inherited from class oracle.cabo.servlet.url.BasePageEncoder |
assembleQueryString, decodePageEvent, decodePageEvent, decodePageEventImpl, decodeParameterDictionary, decodeParameters, decodeRequestedPageEvent, encodeEventURL, encodePageAndEvent, encodePageAndEvent, encodePageURL, encodeResponsePage, getBaseURL, getContext, getDefaultCharacterEncoding, getDefaultURL, getErrorLog, getRequestCharacterEncoding, getRequestCharacterEncoding, setRequestCharacterEncoding, setResponsePage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JspPageEncoder
public JspPageEncoder(BajaContext context,
java.lang.String controllerURL)
- Creates a JSPPageEncoder.
- Parameters:
context
- the current BajaContextcontrollerURL
- the URL of the controller servlet/JSP;
if null, will use the current servlet request.
decodeFullPageName
protected java.lang.String decodeFullPageName()
- Description copied from class:
DefaultPageEncoder
- Identifies the full page name for the current request.
- Overrides:
decodeFullPageName
in class DefaultPageEncoder
assembleURL
protected java.lang.String assembleURL(java.lang.String baseURL,
java.lang.String pageName,
java.lang.String pageProperties,
java.lang.String parametersURL)
- Description copied from class:
BasePageEncoder
- Assembles the four parts of a Baja URL into a full URL.
- Overrides:
assembleURL
in class BasePageEncoder
- Following copied from class:
oracle.cabo.servlet.url.BasePageEncoder
- Parameters:
baseURL
- the base of the URL, or null to omit. This
should include the context and servlet paths.pageName
- the name of the page (or null)pageProperties
- the properties of the page, encoded
as a single string (or null)parametersURL
- the event parameters