Class OGCRequestDescription

    • Field Detail

      • FORMAT

        protected javax.xml.namespace.QName FORMAT
      • DCPTYPE

        protected javax.xml.namespace.QName DCPTYPE
      • requestName

        protected java.lang.String requestName
      • formats

        protected java.util.Set<java.lang.String> formats
      • dcpTypes

        protected java.util.Set<OGCDCType> dcpTypes
    • Constructor Detail

      • OGCRequestDescription

        public OGCRequestDescription​(java.lang.String namespaceURI)
    • Method Detail

      • allocate

        public XMLEventParser allocate​(XMLEventParserContext ctx,
                                       javax.xml.stream.events.XMLEvent event)
        Description copied from class: AbstractXMLEventParser
        Create a parser for a specified event.
        Overrides:
        allocate in class AbstractXMLEventParser
        Parameters:
        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.
        Returns:
        the new parser.
      • parse

        public java.lang.Object parse​(XMLEventParserContext ctx,
                                      javax.xml.stream.events.XMLEvent rqstEvent,
                                      java.lang.Object... args)
                               throws javax.xml.stream.XMLStreamException
        Description copied from class: AbstractXMLEventParser
        Parse the event and initialize the parser's values to those found in the event.
        Specified by:
        parse in interface XMLEventParser
        Overrides:
        parse in class AbstractXMLEventParser
        Parameters:
        ctx - a current parser context.
        rqstEvent - the event to parse.
        args - an optional list of arguments that may by used by subclasses.
        Returns:
        if parsing is successful, returns this, otherwise returns null.
        Throws:
        javax.xml.stream.XMLStreamException - if an exception occurs during event-stream reading.
      • doParseEventContent

        protected void doParseEventContent​(XMLEventParserContext ctx,
                                           javax.xml.stream.events.XMLEvent event,
                                           java.lang.Object... args)
                                    throws javax.xml.stream.XMLStreamException
        Description copied from class: AbstractXMLEventParser
        Parse an event's sub-elements.
        Overrides:
        doParseEventContent in class AbstractXMLEventParser
        Parameters:
        ctx - a current parser context.
        event - the event to parse.
        args - an optional list of arguments that may by used by subclasses.
        Throws:
        javax.xml.stream.XMLStreamException - if an exception occurs during event-stream reading.
      • getOnlineResouce

        public OGCOnlineResource getOnlineResouce​(java.lang.String protocol,
                                                  java.lang.String requestMethod)
      • getFormats

        public java.util.Set<java.lang.String> getFormats()
      • setFormats

        protected void setFormats​(java.util.Set<java.lang.String> formats)
      • addFormat

        protected void addFormat​(java.lang.String format)
      • setDCPTypes

        protected void setDCPTypes​(java.util.Set<OGCDCType> dcTypes)
      • getDCPTypes

        public java.util.Set<OGCDCType> getDCPTypes()
      • addDCPType

        public void addDCPType​(OGCDCType dct)
      • getRequestName

        public java.lang.String getRequestName()
      • setRequestName

        protected void setRequestName​(java.lang.String requestName)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object