Class AbstractWFSResponseFactory

    • Constructor Detail

      • AbstractWFSResponseFactory

        public AbstractWFSResponseFactory()
    • Method Detail

      • createResponseImpl

        protected abstract WFSResponse createResponseImpl​(WFSRequest request,
                                                          HTTPResponse response,
                                                          InputStream in)
                                                   throws IOException
        Has to be implemented to turn the request and response into a proper WFSResponse.
        Parameters:
        in - The stream to read the response from. It is safe not to close this stream explicitly but to dispose the response instead.
        Returns:
        The actual response
        Throws:
        IOException
      • isValidResponseHead

        protected abstract boolean isValidResponseHead​(String head)
        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.