Class XMLElementSessionIdExtractor
java.lang.Object
com.predic8.membrane.core.config.AbstractXmlElement
com.predic8.membrane.core.interceptor.balancer.AbstractSessionIdExtractor
com.predic8.membrane.core.interceptor.balancer.XMLElementSessionIdExtractor
- All Implemented Interfaces:
XMLElement
- Description
- Extracts a session ID from an XML HTTP request body based on the qualified name of an XML element.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetSessionId(Message msg) protected voidparseAttributes(XMLStreamReader token) voidsetLocalName(String localName) voidsetNamespace(String namespace) voidwrite(XMLStreamWriter out) Methods inherited from class com.predic8.membrane.core.interceptor.balancer.AbstractSessionIdExtractor
hasSessionIdMethods inherited from class com.predic8.membrane.core.config.AbstractXmlElement
doAfterParsing, getBoolean, move2RootElementIfNeeded, parse, parseCharacters, parseChildren, toXml, writeIfNotNull
-
Constructor Details
-
XMLElementSessionIdExtractor
public XMLElementSessionIdExtractor()
-
-
Method Details
-
getSessionId
- Specified by:
getSessionIdin classAbstractSessionIdExtractor- Throws:
Exception
-
getLocalName
-
setLocalName
- Description
- Specifies local name of session element.
- Example
- session
-
getNamespace
-
setNamespace
- Description
- Specifies namespace of session element.
- Example
- http://chat.predic8.com/
-
write
- Specified by:
writein interfaceXMLElement- Overrides:
writein classAbstractXmlElement- Throws:
XMLStreamException
-
parseAttributes
- Overrides:
parseAttributesin classAbstractXmlElement- Throws:
XMLStreamException
-
getElementName
- Overrides:
getElementNamein classAbstractXmlElement
-