public class OGCRequestDescription extends AbstractXMLEventParser
Modifier and Type | Field and Description |
---|---|
protected QName |
DCPTYPE |
protected Set<OGCDCType> |
dcpTypes |
protected QName |
FORMAT |
protected Set<String> |
formats |
protected String |
requestName |
CHARACTERS_CONTENT, fields, namespaceURI, parent
Constructor and Description |
---|
OGCRequestDescription(String namespaceURI) |
Modifier and Type | Method and Description |
---|---|
void |
addDCPType(OGCDCType dct) |
protected void |
addFormat(String format) |
XMLEventParser |
allocate(XMLEventParserContext ctx,
XMLEvent event)
Create a parser for a specified event.
|
protected void |
doParseEventContent(XMLEventParserContext ctx,
XMLEvent event,
Object... args)
Parse an event's sub-elements.
|
Set<OGCDCType> |
getDCPTypes() |
Set<String> |
getFormats() |
OGCOnlineResource |
getOnlineResouce(String protocol,
String requestMethod) |
String |
getRequestName() |
Object |
parse(XMLEventParserContext ctx,
XMLEvent rqstEvent,
Object... args)
Parse the event and initialize the parser's values to those found in the event.
|
protected void |
setDCPTypes(Set<OGCDCType> dcTypes) |
protected void |
setFormats(Set<String> formats) |
protected void |
setRequestName(String requestName) |
String |
toString() |
doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, getRoot, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parseCharacterContent, removeField, setField, setField, setFields, setNamespaceURI, setParent
protected QName DCPTYPE
protected QName FORMAT
protected String requestName
public OGCRequestDescription(String namespaceURI)
public void addDCPType(OGCDCType dct)
protected void addFormat(String format)
public XMLEventParser allocate(XMLEventParserContext ctx, XMLEvent event)
AbstractXMLEventParser
allocate
in class AbstractXMLEventParser
ctx
- the current parser context.event
- the event for which the parser is created. Only the event type is used; the new parser can operate
on any event of that type.protected void doParseEventContent(XMLEventParserContext ctx, XMLEvent event, Object... args) throws XMLStreamException
AbstractXMLEventParser
doParseEventContent
in class AbstractXMLEventParser
ctx
- a current parser context.event
- the event to parse.args
- an optional list of arguments that may by used by subclasses.XMLStreamException
- if an exception occurs during event-stream reading.public OGCOnlineResource getOnlineResouce(String protocol, String requestMethod)
public String getRequestName()
public Object parse(XMLEventParserContext ctx, XMLEvent rqstEvent, Object... args) throws XMLStreamException
AbstractXMLEventParser
parse
in interface XMLEventParser
parse
in class AbstractXMLEventParser
ctx
- a current parser context.rqstEvent
- the event to parse.args
- an optional list of arguments that may by used by subclasses.this
, otherwise returns null.XMLStreamException
- if an exception occurs during event-stream reading.protected void setRequestName(String requestName)