Edit D:\app\Administrator\product\11.2.0\dbhome_1\owb\misc\drivers\org\xmldb\WebServerConnection.class
?? -? org/xmldb/WebServerConnection java/lang/Object java/lang/Runnable ENCODING Ljava/lang/String; ConstantValue 8859_1 socket Ljava/net/Socket; server Lorg/xmldb/WebServer; REQUEST_TYPE_BAD I REQUEST_TYPE_GET REQUEST_TYPE_HEAD REQUEST_TYPE_POST HEADER_OK HTTP/1.0 200 OK HEADER_BAD_REQUEST HTTP/1.0 400 Bad Request HEADER_NOT_FOUND HTTP/1.0 404 Not Found HEADER_FORBIDDEN HTTP/1.0 403 Forbidden # BUFFER_SIZE rowOut !Lorg/xmldb/rowio/RowOutputBinary; rowIn Lorg/xmldb/rowio/RowInputBinary; BYTES_GET [B BYTES_HEAD BYTES_POST BYTES_CONTENT BYTES_WHITESPACE hnd_content_types <clinit> ()V Code GET 5 java/lang/String 7 getBytes ()[B 9 : 8 ; + , = HEAD ? - , A POST C . , E Content-Length: G / , I 0 , K content_types M !org/xmldb/resources/BundleHandler O getBundleHandle ,(Ljava/lang/String;Ljava/lang/ClassLoader;)I Q R P S 1 U Z e <init> )(Ljava/net/Socket;Lorg/xmldb/WebServer;)V Y 3 [ org/xmldb/rowio/RowOutputBinary ] (I)V Y _ ^ ` ' ( b org/xmldb/rowio/RowInputBinary d $(Lorg/xmldb/rowio/RowOutputBinary;)V Y f e g ) * i k m l i getMimeTypeString &(Ljava/lang/String;)Ljava/lang/String; text/html s lastIndexOf (I)I u v 8 w substring (I)Ljava/lang/String; y z 8 { toLowerCase ()Ljava/lang/String; } ~ 8 org/xmldb/Server ? serverProperties Lorg/xmldb/HsqlProperties; ? ? ? ? org/xmldb/HsqlProperties ? getProperty ? r ? ? length ()I ? ? 8 ? getString '(ILjava/lang/String;)Ljava/lang/String; ? ? P ? x Z e l run java/io/DataInputStream ? java/net/Socket ? getInputStream ()Ljava/io/InputStream; ? ? ? ? (Ljava/io/InputStream;)V Y ? ? ? org/xmldb/lib/InOutUtil ? readLine .(Ljava/io/InputStream;Ljava/io/OutputStream;)I ? ? ? ? java/lang/Exception ? ? [ 'org/xmldb/lib/HsqlByteArrayOutputStream ? getBuffer ? : ? ? size ? ? ? ? org/xmldb/lib/ArrayUtil ? containsAt ([BI[B)Z ? ? ? ? countStartElementsAt ([BI[B)I ? ? ? ? countNonStartElementsAt ? ? ? ? ([BIILjava/lang/String;)V Y ? 8 ? processError ? _ ? processGet (Ljava/lang/String;Z)V ? ? ? processPost *(Ljava/io/InputStream;Ljava/lang/String;)V ? ? ? java/io/FilterInputStream ? close ? 3 ? ? ? ? printStackTrace (Ljava/lang/Throwable;)V ? ? ? ? i x Z e l i x Z e Exceptions org/xmldb/HsqlException ? java/io/IOException ? ([BII)V Y ? 8 ? java/lang/Integer ? parseInt (Ljava/lang/String;)I ? ? ? ? processQuery ? ? ? l i java/io/BufferedInputStream ? ? ? org/xmldb/Result ? read I(Lorg/xmldb/rowio/RowInputBinary;Ljava/io/InputStream;)Lorg/xmldb/Result; ? ? ? ? mode ? ? dbAlias [Ljava/lang/String; ? subSubString ? find (([Ljava/lang/Object;Ljava/lang/Object;)I ? dbID [I ? getMainString ~ ? getSubString ~ ? org/xmldb/DatabaseManager newSession :(ILjava/lang/String;Ljava/lang/String;)Lorg/xmldb/Session; ? ` databaseID ? org/xmldb/Session" getId$ ? #% sessionID' ?( *(Ljava/lang/Throwable;Ljava/lang/String;)V Y* ?+ org/xmldb/Trace- error (I)Lorg/xmldb/HsqlException;/0 .1 dbType3 ?4 dbPath6 ?7 getSession :(Ljava/lang/String;Ljava/lang/String;I)Lorg/xmldb/Session;9: ; execute &(Lorg/xmldb/Result;)Lorg/xmldb/Result;=> #? resetA 3 ^B writeD f ?E getOutputStream ()Ljava/io/OutputStream;GH ?I application/octet-streamK getHead :(Ljava/lang/String;ZLjava/lang/String;I)Ljava/lang/String;MN O (Ljava/lang/String;)[B 9Q 8R java/io/OutputStreamT ([B)VDV UW org/xmldb/rowio/RowOutputBaseY +()Lorg/xmldb/lib/HsqlByteArrayOutputStream;G[ Z\D ? U^ flush` 3 Ua U ? (java/lang/ArrayIndexOutOfBoundsExceptiond x Z e l i x Z e l i x /q endsWith (Ljava/lang/String;)Zst 8u java/lang/StringBufferw valueOf &(Ljava/lang/Object;)Ljava/lang/String;yz 8{ (Ljava/lang/String;)V Y} x~ org/xmldb/WebServer? getDefaultWebPage? ~ ?? append ,(Ljava/lang/String;)Ljava/lang/StringBuffer;?? x? toString? ~ x? ..? indexOf? ? 8? getWebRoot? ~ ?? java/io/File? separatorChar C?? ?? replace (CC)Ljava/lang/String;?? 8? GET ? printWithThread?} ?? ?~ java/io/FileInputStream? (Ljava/io/File;)V Y? ?? q r ? ()J ?? ?? java/io/InputStream? ? ? java/io/BufferedOutputStream? (Ljava/io/OutputStream;)V Y? ??D _ U? ? ? ?? processGet: ? java/lang/Throwable? getMessage? ~ ?? printError?} ?? Z e l i x Z e l i x ` ? *Allow: GET, HEAD, POST MIME-Version: 1.0 ? Server: ? HSQLDB/1.7.2? Content-Type: ? (I)Ljava/lang/StringBuffer;?? x? x Z e l processError ? webBundleHandle? ?? BAD_REQUEST? FORBIDDEN? NOT_FOUND? processError: ? i x getConnectionThreadName HSQLDB HTTP Connection @? hashCode? ? ? (II)Ljava/lang/String;?? ?? SourceFile WebServerConnection.java ! "