Class XmlRpcStreamServer

    • Constructor Detail

      • XmlRpcStreamServer

        public XmlRpcStreamServer()
    • Method Detail

      • convertThrowable

        protected java.lang.Throwable convertThrowable​(java.lang.Throwable pError)
        This method allows to convert the error into another error. For example, this may be an error, which could be deserialized by the client.
      • setXMLWriterFactory

        public void setXMLWriterFactory​(XmlWriterFactory pFactory)
        Sets the XML Writer factory.
        Parameters:
        pFactory - The XML Writer factory.
      • getXMLWriterFactory

        public XmlWriterFactory getXMLWriterFactory()
        Returns the XML Writer factory.
        Returns:
        The XML Writer factory.
      • getOutputStream

        protected java.io.OutputStream getOutputStream​(ServerStreamConnection pConnection,
                                                       XmlRpcStreamRequestConfig pConfig,
                                                       java.io.OutputStream pStream)
                                                throws java.io.IOException
        Called to prepare the output stream. Typically used for enabling compression, or similar filters.
        Parameters:
        pConnection - The connection object.
        Throws:
        java.io.IOException
      • getOutputStream

        protected java.io.OutputStream getOutputStream​(XmlRpcStreamRequestConfig pConfig,
                                                       ServerStreamConnection pConnection,
                                                       int pSize)
                                                throws java.io.IOException
        Called to prepare the output stream, if content length is required.
        Parameters:
        pConfig - The configuration object.
        pSize - The requests size.
        Throws:
        java.io.IOException
      • isContentLengthRequired

        protected boolean isContentLengthRequired​(XmlRpcStreamRequestConfig pConfig)
        Returns, whether the requests content length is required.
        Parameters:
        pConfig - The configuration object.
      • logError

        protected void logError​(java.lang.Throwable t)
      • getErrorLogger

        public XmlRpcErrorLogger getErrorLogger()
        Returns the error logger.
      • setErrorLogger

        public void setErrorLogger​(XmlRpcErrorLogger pErrorLogger)
        Sets the error logger.