Class ClarinFCSEndpointDescriptionParser

    • Field Detail

      • INFINITE_MAX_DEPTH

        public static final int INFINITE_MAX_DEPTH
        constant for infinite resource enumeration parsing depth
        See Also:
        Constant Field Values
      • DEFAULT_MAX_DEPTH

        public static final int DEFAULT_MAX_DEPTH
        constant for default parsing resource enumeration parsing depth
        See Also:
        Constant Field Values
      • DEFAULT_PARSING_STREAMING

        public static final boolean DEFAULT_PARSING_STREAMING
        constant for default parsing method (event based streaming, or in-memory XML DOM)
        See Also:
        Constant Field Values
    • Constructor Detail

      • ClarinFCSEndpointDescriptionParser

        public ClarinFCSEndpointDescriptionParser()
        Constructor. By default, the parser will parse the endpoint resource enumeration to an infinite depth. It will also parse the XML using an in-memory DOM with XPaths.
      • ClarinFCSEndpointDescriptionParser

        public ClarinFCSEndpointDescriptionParser​(int maxDepth)
        Constructor. By default, the parser will use in-memory DOM with XPaths.
        Parameters:
        maxDepth - maximum depth for parsing the endpoint resource enumeration.
        Throws:
        IllegalArgumentException - if an argument is illegal
      • ClarinFCSEndpointDescriptionParser

        public ClarinFCSEndpointDescriptionParser​(boolean streaming)
        Constructor. By default, the parser will parse the endpoint resource enumeration to an infinite depth.
        Parameters:
        streaming - parse SRU extra response data in streaming manner instead of in-memory DOM using XPaths.
        Throws:
        IllegalArgumentException - if an argument is illegal
      • ClarinFCSEndpointDescriptionParser

        public ClarinFCSEndpointDescriptionParser​(int maxDepth,
                                                  boolean streaming)
        Constructor.
        Parameters:
        maxDepth - maximum depth for parsing the endpoint resource enumeration.
        streaming - parse SRU extra response data in streaming manner instead of in-memory DOM using XPaths.
        Throws:
        IllegalArgumentException - if an argument is illegal