Class TransactionResponseFactory

    • Constructor Detail

      • TransactionResponseFactory

        public TransactionResponseFactory()
    • Method Detail

      • isAvailable

        public boolean isAvailable()
        Description copied from interface: WFSResponseFactory
        Indicates whether the factory instance is able to create parser instances.
        Returns:
        true if there's nothing preventing the creation of the parsers this factory should produce
      • canProcess

        public boolean canProcess​(WFSRequest originatingRequest,
                                  String contentType)
        Description copied from interface: WFSResponseFactory
        Indicates whether this factory is able to produce a parser that deals with the possible responses of the given WFS request.

        The decision may usually be made depending on the request type, ouput format, etc

        Returns:
        true if this factory can create a parser for the responses of the given request
      • getSupportedOutputFormats

        public List<String> getSupportedOutputFormats()
      • isValidResponseHead

        protected boolean isValidResponseHead​(String head)
        Specified by:
        isValidResponseHead in class AbstractWFSResponseFactory
        Parameters:
        head - The first couple of characters from the response, typically the first 512
        Returns:
        true, if head is an indicator for the expected XML result structure.