|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jbo.html.HtmlServices
The HtmlServices class contains several useful class fields and methods. It cannot be instantiated.
Field Summary | |
static java.lang.String |
DISP_RENDERER_KEY
The field type value for Display renderer |
static java.lang.String |
EDIT_RENDERER_KEY
The field type value for Edit renderer |
static java.lang.String |
NULLSTRING
Internal: Applications should not use this field. |
static java.lang.String |
ORD_DISPLAYRENDERER_CLASSNAME
Default Intermedia Display renderer class name |
static java.lang.String |
ORD_EDITRENDERER_CLASSNAME
Default Intermedia Edit renderer class name |
static java.lang.String |
ORD_PARAM
Internal: Applications should not use this field. Key to identify request paramater list in the page context |
Constructor Summary | |
HtmlServices()
|
Method Summary | |
static java.lang.String |
getArrayAttributeName(AttributeDef attrDef,
int i)
Build an attribute path for a Array domain |
static java.lang.String |
getAttributeStringValue(Row row,
AttributeDef aDef,
LocaleContext localeContext)
|
static HTMLFieldRenderer |
getFieldRendererFromClassName(java.lang.String sClassName,
javax.servlet.jsp.PageContext page)
Load and instanciate a Renderer class |
static java.lang.String |
getHiddenAttributeName(java.lang.String attrName)
Build the name of the hidden field used to store the original value of an attribute |
static OrdHttpUploadFormData |
getOrdFormData(javax.servlet.http.HttpServletRequest request)
Gets the OrdHttpUploadFormData object stored in
HttpServletRequest . |
static java.lang.Object |
getOrdObject(AttributeDef attrDef,
OrdFileSource tempFile,
Row row,
ApplicationModule am,
java.lang.String mimeType)
Deprecated. since 10.1.2 see oracle.ord.im.OrdDomainUtil |
static java.lang.String |
getRendererKeyFromDomainName(java.lang.String className,
java.lang.String type)
Build a string key from a Domain class name |
static java.lang.String |
getRequestParameter(javax.servlet.jsp.PageContext pageContext,
java.lang.String key)
Retrieve a single request parameter from the request parameter list. |
static RequestParameters |
getRequestParameters(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletResponse response,
SessionCookie cookie)
Internal: Applications should not use this method. |
static RequestParameters |
getRequestParameters(javax.servlet.jsp.PageContext pageContext)
Retrieve the list of request parameters. |
static java.lang.String |
getStructAttributeName(AttributeDef attrDef,
AttributeDef subAttrDef)
Build an attribute path for a Struct domain |
static void |
internalSetAttribute(java.lang.String sName,
AttributeList attrList,
AttributeDef attrDef,
RequestParameters params,
LocaleContext locale)
Internal: Applications should not use this method. |
static boolean |
isMultipartPost(javax.servlet.http.HttpServletRequest request)
Decides whether the HttpRequest is "multipart/form-data". |
static boolean |
isOrdDomainType(AttributeDef attrDef)
|
static boolean |
isStrutsContext(javax.servlet.jsp.PageContext pageContext)
Check if the current context is in a Struts application |
static void |
registerORDrenderer(javax.servlet.http.HttpSession session)
Deprecated. Since 10.1.2 |
static void |
releaseRequestParameters(javax.servlet.jsp.PageContext pageContext)
Internal: Applications should not use this method. |
static void |
setAttributeFromRequest(Row row,
AttributeDef attrDef,
javax.servlet.http.HttpServletRequest request,
LocaleContext locale)
Internal: Applications should not use this method. |
static void |
setAttributeFromRequestParameters(Row row,
AttributeDef attrDef,
RequestParameters params,
LocaleContext locale)
Internal: Applications should not use this method. |
static java.lang.String |
treatInvalidCharacter(java.lang.String x)
Format a String to be readable by a JavaScript method |
static void |
updateRowAttributesFromRequestParameters(DataSource ds,
Row row,
RequestParameters params)
Internal: Applications should not use this method. |
static void |
updateRowAttributesFromRequestParameters(ViewObject vo,
Row row,
RequestParameters params)
Internal: Applications should not use this method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DISP_RENDERER_KEY
public static final java.lang.String EDIT_RENDERER_KEY
public static final java.lang.String ORD_DISPLAYRENDERER_CLASSNAME
public static final java.lang.String ORD_EDITRENDERER_CLASSNAME
public static final java.lang.String ORD_PARAM
public static final java.lang.String NULLSTRING
Constructor Detail |
public HtmlServices()
Method Detail |
public static RequestParameters getRequestParameters(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletResponse response, SessionCookie cookie) throws java.io.IOException
Retrieve the list of request parameters
java.io.IOException
public static void releaseRequestParameters(javax.servlet.jsp.PageContext pageContext)
Release resources associated with the request parameters list
public static RequestParameters getRequestParameters(javax.servlet.jsp.PageContext pageContext)
pageContext
- PageContext of the current JSP
RequestParameters
public static java.lang.String getRequestParameter(javax.servlet.jsp.PageContext pageContext, java.lang.String key)
pageContext
- PageContext of the current JSPkey
- name of the request parameter to retrieve
public static void updateRowAttributesFromRequestParameters(DataSource ds, Row row, RequestParameters params) throws java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalAccessException
public static void updateRowAttributesFromRequestParameters(ViewObject vo, Row row, RequestParameters params) throws java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalAccessException
public static void internalSetAttribute(java.lang.String sName, AttributeList attrList, AttributeDef attrDef, RequestParameters params, LocaleContext locale)
public static void setAttributeFromRequestParameters(Row row, AttributeDef attrDef, RequestParameters params, LocaleContext locale) throws java.lang.IllegalAccessException, java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.InstantiationException
public static void setAttributeFromRequest(Row row, AttributeDef attrDef, javax.servlet.http.HttpServletRequest request, LocaleContext locale) throws java.lang.IllegalAccessException, java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.InstantiationException
public static java.lang.String getHiddenAttributeName(java.lang.String attrName)
attrName
- Name of the attribute
public static java.lang.Object getOrdObject(AttributeDef attrDef, OrdFileSource tempFile, Row row, ApplicationModule am, java.lang.String mimeType) throws java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalAccessException
public static void registerORDrenderer(javax.servlet.http.HttpSession session)
ORDRegisterer
public static java.lang.String getRendererKeyFromDomainName(java.lang.String className, java.lang.String type)
This key is used to identify the renderer associated with a Domain.
className
- Class name of the domaintype
- Renderer type ("DISPLAY" or "EDIT")
public static HTMLFieldRenderer getFieldRendererFromClassName(java.lang.String sClassName, javax.servlet.jsp.PageContext page)
Errors are reported to a servlet log file.
page
- pageContext PageContext of the current JSP
public static java.lang.String getStructAttributeName(AttributeDef attrDef, AttributeDef subAttrDef)
attrDef
- Attribute definition of the Struct classsubAttrDef
- Attribute definition of the attribute inside the Struct class
public static java.lang.String getArrayAttributeName(AttributeDef attrDef, int i)
attrDef
- Attribute definition of the Array classi
- index of the current Array element
public static java.lang.String treatInvalidCharacter(java.lang.String x)
Replace \ by \\, ' by \' and " by \".
x
- string to format
public static boolean isStrutsContext(javax.servlet.jsp.PageContext pageContext)
pageContext
-
public static boolean isOrdDomainType(AttributeDef attrDef)
public static boolean isMultipartPost(javax.servlet.http.HttpServletRequest request)
public static java.lang.String getAttributeStringValue(Row row, AttributeDef aDef, LocaleContext localeContext)
public static OrdHttpUploadFormData getOrdFormData(javax.servlet.http.HttpServletRequest request)
OrdHttpUploadFormData
object stored in
HttpServletRequest
. This method should only be used after
HtmlServices.getRequestParameters(HttpServletRequest, ServletResponse,
SessionCookie); is called.
request
- the HttpServletRequest
object
OrdHttpUploadFormData
object if the HTTP request
is a "multipart/form-data" POST request; null otherwise.
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.