|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.cocoon.Utils
Utility methods for Cocoon and its classes.
Constructor Summary | |
Utils()
|
Method Summary | |
static java.lang.String |
encode(javax.servlet.http.HttpServletRequest req)
Encodes the given request into a string using the format protocol://serverName:serverPort/requestURI? |
static java.lang.String |
encode(javax.servlet.http.HttpServletRequest req,
boolean agent)
Encodes the given request into a string using the format userAgent:protocol://serverName:serverPort/requestURI? |
static java.lang.String |
encode(javax.servlet.http.HttpServletRequest req,
boolean agent,
boolean query)
Encodes the given request into a string using the format userAgent:protocol://serverName:serverPort/requestURI? |
static java.util.Vector |
getAllPIs(org.w3c.dom.Document document,
java.lang.String name)
This method returns a vector of PI nodes based on the PI target name. |
static java.util.Vector |
getAllPIs(org.w3c.dom.Document document,
java.lang.String name,
boolean remove)
This method returns a vector of PI nodes based on the PI target name and removes the found PIs from the document if the remove flag is true. |
static org.w3c.dom.ProcessingInstruction |
getFirstPI(org.w3c.dom.Document document,
java.lang.String name)
This method returns the first PI node based on the PI target name. |
static org.w3c.dom.ProcessingInstruction |
getFirstPI(org.w3c.dom.Document document,
java.lang.String name,
boolean remove)
This method returns the first PI node based on the PI target name and removes it from the document if the remove flag is true. |
static java.util.Hashtable |
getPIPseudoAttributes(org.w3c.dom.Document document,
java.lang.String name)
This method returns an hashtable with all the pseudo attributes collected in the document. |
static java.util.Hashtable |
getPIPseudoAttributes(org.w3c.dom.ProcessingInstruction pi)
This method returns an hashtable of pseudo attributes found in the first occurrence of the PI with the given name in the given document. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public Utils()
Method Detail |
public static final java.util.Vector getAllPIs(org.w3c.dom.Document document, java.lang.String name)
public static final java.util.Vector getAllPIs(org.w3c.dom.Document document, java.lang.String name, boolean remove)
public static final org.w3c.dom.ProcessingInstruction getFirstPI(org.w3c.dom.Document document, java.lang.String name)
public static final org.w3c.dom.ProcessingInstruction getFirstPI(org.w3c.dom.Document document, java.lang.String name, boolean remove)
public static final java.util.Hashtable getPIPseudoAttributes(org.w3c.dom.Document document, java.lang.String name)
public static final java.util.Hashtable getPIPseudoAttributes(org.w3c.dom.ProcessingInstruction pi)
public static final java.lang.String encode(javax.servlet.http.HttpServletRequest req)
public static final java.lang.String encode(javax.servlet.http.HttpServletRequest req, boolean agent)
public static final java.lang.String encode(javax.servlet.http.HttpServletRequest req, boolean agent, boolean query)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |