Class MagnetURIHandlerImpl

    • Constructor Detail

      • MagnetURIHandlerImpl

        protected MagnetURIHandlerImpl()
    • Method Detail

      • process

        public void process​(java.lang.String get,
                            java.io.InputStream is,
                            java.io.OutputStream os)
                     throws java.io.IOException
        Specified by:
        process in class MagnetURIHandler
        Throws:
        java.io.IOException
      • process

        protected boolean process​(java.lang.String get,
                                  java.io.BufferedReader is,
                                  java.io.OutputStream os)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • writeImage

        private void writeImage​(java.io.OutputStream os,
                                int width,
                                int height)
        Parameters:
        os -
        width -
        height -
        Since:
        3.0.2.1
      • write4Bytes

        private void write4Bytes​(java.io.OutputStream os,
                                 long l)
      • getMessageText

        protected java.lang.String getMessageText​(java.lang.String resource)
      • getMessageText

        protected java.lang.String getMessageText​(java.lang.String resource,
                                                  java.lang.String param)
      • getJS

        protected java.lang.String getJS​(java.lang.String s)
      • getJSS

        protected java.lang.String getJSS​(java.lang.String s)
      • writeReply

        protected void writeReply​(java.io.OutputStream os,
                                  java.lang.String content_type,
                                  java.lang.String content)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • writeReply

        protected void writeReply​(java.io.OutputStream os,
                                  java.lang.String content_type,
                                  byte[] content)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • writeNotFound

        protected void writeNotFound​(java.io.OutputStream os)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • addInfo

        public void addInfo​(java.lang.String name,
                            int info)
        Specified by:
        addInfo in class MagnetURIHandler
      • main

        public static void main​(java.lang.String[] args)