public class SessionURLRewriter
extends ProxyReceiver
Modifier and Type | Field and Description |
---|---|
private String |
elementName |
private Pattern |
encodeURLPattern |
private HttpServletRequest |
httpRequest |
private HttpServletResponse |
httpResponse |
private NamePool |
namePool |
Constructor and Description |
---|
SessionURLRewriter(Receiver underlyingReceiver,
Pattern encodeURLPattern,
HttpServletRequest httpRequest,
HttpServletResponse httpResponse)
Construct the URL rewriter, recording a reference to the receiver
that will get the data, and the HTTP servlet response we'll use to
get session info and to rewrite URLs.
|
Modifier and Type | Method and Description |
---|---|
void |
attribute(int nameCode,
int typeCode,
CharSequence value,
int locationId,
int properties)
Called when an attribute is output.
|
private String |
getLocalName(int nameCode)
Get the local name corresponding to the given namecode
|
void |
startElement(int nameCode,
int typeCode,
int locationId,
int properties)
Called when an element begins.
|
append, characters, close, comment, endDocument, endElement, getConfiguration, getDocumentLocator, getNamePool, getUnderlyingReceiver, namespace, open, processingInstruction, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument
private Pattern encodeURLPattern
private HttpServletRequest httpRequest
private HttpServletResponse httpResponse
private NamePool namePool
private String elementName
SessionURLRewriter(Receiver underlyingReceiver, Pattern encodeURLPattern, HttpServletRequest httpRequest, HttpServletResponse httpResponse)
public void startElement(int nameCode, int typeCode, int locationId, int properties) throws XPathException
startElement
in interface Receiver
startElement
in class ProxyReceiver
XPathException
public void attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties) throws XPathException
attribute
in interface Receiver
attribute
in class ProxyReceiver
XPathException
private String getLocalName(int nameCode)