|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.language.markup.xsp.XSPRequestHelper
public class XSPRequestHelper
The Request
object helper
Constructor Summary | |
---|---|
XSPRequestHelper()
|
Method Summary | |
---|---|
static String[] |
getAttributeNames(Map objectModel)
Returns the attribute names |
static void |
getAttributeNames(Map objectModel,
ContentHandler contentHandler)
Output attribute names for a given request |
static Date |
getDateHeader(Map objectModel,
String name)
|
static String |
getDateHeader(Map objectModel,
String name,
String format)
|
static String[] |
getHeaderNames(Map objectModel)
Returns the header names for a given request |
static void |
getHeaderNames(Map objectModel,
ContentHandler contentHandler)
Output the header names for a given request |
static String[] |
getHeaders(Map objectModel,
String name)
|
static void |
getHeaders(Map objectModel,
String name,
ContentHandler contentHandler)
|
static void |
getLocale(Map objectModel,
ContentHandler handler)
|
static Locale[] |
getLocales(Map objectModel)
Return the request locales as array |
static void |
getLocales(Map objectModel,
ContentHandler contentHandler)
Output request locales |
static void |
getParameter(Map objectModel,
ContentHandler contentHandler,
String name,
String defaultValue)
Output the given request parameter value or a user-provided default if none was specified. |
static void |
getParameter(Map objectModel,
ContentHandler contentHandler,
String name,
String defaultValue,
String form_encoding,
String container_encoding)
Output the given request parameter value or a user-provided default if none was specified. |
static String |
getParameter(Map objectModel,
String name,
String defaultValue)
Return the given request parameter value or a user-provided default if none was specified. |
static String |
getParameter(Map objectModel,
String name,
String defaultValue,
String form_encoding,
String container_encoding)
Return the given request parameter value or a user-provided default if none was specified. |
static String[] |
getParameterNames(Map objectModel)
return the request parameter names as array |
static void |
getParameterNames(Map objectModel,
ContentHandler contentHandler)
Output parameter names for a given request |
static void |
getParameterValues(Map objectModel,
ContentHandler contentHandler,
String name)
Output the request parameter values for a given name |
static void |
getParameterValues(Map objectModel,
ContentHandler contentHandler,
String name,
String form_encoding,
String container_encoding)
Output the request parameter values for a given name |
static String[] |
getParameterValues(Map objectModel,
String name,
String form_encoding,
String container_encoding)
return the request parameter values for a given name as array |
static String |
getRequestedURL(Map objectModel)
|
static void |
getSessionAttribute(Map objectModel,
ContentHandler contentHandler,
String name,
Object defaultValue)
Output the given session attribute value or a user-provided default if none was specified. |
static Object |
getSessionAttribute(Map objectModel,
String name,
Object defaultValue)
Return the given session attribute value or a user-provided default if none was specified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSPRequestHelper()
Method Detail |
---|
public static void getLocale(Map objectModel, ContentHandler handler) throws SAXException
SAXException
public static Locale[] getLocales(Map objectModel)
public static void getLocales(Map objectModel, ContentHandler contentHandler) throws SAXException
objectModel
- The Map objectModelcontentHandler
- The SAX content handler
SAXException
- If a SAX error occurspublic static String getParameter(Map objectModel, String name, String defaultValue)
objectModel
- The Map objectModelname
- The parameter namedefaultValue
- Value to substitute in absence of a parameter valuepublic static String getParameter(Map objectModel, String name, String defaultValue, String form_encoding, String container_encoding)
objectModel
- The Map objectModelname
- The parameter namedefaultValue
- Value to substitute in absence of a parameter valueform_encoding
- The supposed encoding of the request parameter.container_encoding
- The encoding used by container.public static void getParameter(Map objectModel, ContentHandler contentHandler, String name, String defaultValue) throws SAXException
objectModel
- The Map objectModelcontentHandler
- The SAX content handlername
- The parameter namedefaultValue
- Value to substitute in absence of a parameter value
SAXException
- If a SAX error occurspublic static void getParameter(Map objectModel, ContentHandler contentHandler, String name, String defaultValue, String form_encoding, String container_encoding) throws SAXException
objectModel
- The Map objectModelcontentHandler
- The SAX content handlername
- The parameter namedefaultValue
- Value to substitute in absence of a parameter valueform_encoding
- The supposed encoding of the request parameter.container_encoding
- The encoding used by container.
SAXException
- If a SAX error occurspublic static void getParameterValues(Map objectModel, ContentHandler contentHandler, String name) throws SAXException
objectModel
- The Map objectModelcontentHandler
- The SAX content handler
SAXException
- If a SAX error occurspublic static void getParameterValues(Map objectModel, ContentHandler contentHandler, String name, String form_encoding, String container_encoding) throws SAXException
objectModel
- The Map objectModelcontentHandler
- The SAX content handlerform_encoding
- The supposed encoding of the request parameter.container_encoding
- The encoding used by container.
SAXException
- If a SAX error occurspublic static String[] getParameterValues(Map objectModel, String name, String form_encoding, String container_encoding)
objectModel
- The Map objectModelform_encoding
- The supposed encoding of the request parameter.container_encoding
- The encoding used by container.
public static String[] getParameterNames(Map objectModel)
public static void getParameterNames(Map objectModel, ContentHandler contentHandler) throws SAXException
objectModel
- The Map objectModelcontentHandler
- The SAX content handler
SAXException
- If a SAX error occurspublic static void getHeaderNames(Map objectModel, ContentHandler contentHandler) throws SAXException
objectModel
- The Map objectModelcontentHandler
- The SAX content handler
SAXException
- If a SAX error occurspublic static String[] getHeaderNames(Map objectModel)
objectModel
- The Map objectModelpublic static String[] getHeaders(Map objectModel, String name)
public static void getHeaders(Map objectModel, String name, ContentHandler contentHandler) throws SAXException
SAXException
public static Date getDateHeader(Map objectModel, String name)
public static String getDateHeader(Map objectModel, String name, String format)
public static void getAttributeNames(Map objectModel, ContentHandler contentHandler) throws SAXException
objectModel
- The Map objectModelcontentHandler
- The SAX content handler
SAXException
- If a SAX error occurspublic static String[] getAttributeNames(Map objectModel)
objectModel
- The Map objectModelpublic static String getRequestedURL(Map objectModel)
public static Object getSessionAttribute(Map objectModel, String name, Object defaultValue)
objectModel
- The Map objectModelname
- The attribute namedefaultValue
- Value to substitute in absence of a attribute valuepublic static void getSessionAttribute(Map objectModel, ContentHandler contentHandler, String name, Object defaultValue) throws SAXException
objectModel
- The Map objectModelcontentHandler
- The SAX content handlername
- The attribute namedefaultValue
- Value to substitute in absence of an attribute value
SAXException
- If a SAX error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |