org.apache.cayenne.rop.http.JettyHttpROPConnector.class Maven / Gradle / Ivy
???? 45
N ?
? ? K ? ? ?
? K ? K ? K ? K ? K ? ? ?
? ? ? ?
? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ?
? ? ?
? ?
? ? ? ?
# ?
? ? ? ? ?
) ? ?
) ?
) ? ? ? ? ? ? ? ? ? ? ?
3 ? ? ?
K ? ?
8 ? ? ?
8 ? ? ? ?
) ? ? ? ? ?
# ?
8 ? ?
? ?
? ? ?
? ?
? ? ? ? ? ?
? ? ? ? logger Lorg/apache/commons/logging/Log; SESSION_COOKIE_NAME Ljava/lang/String;
ConstantValue ?
httpClient %Lorg/eclipse/jetty/client/HttpClient; clientConnection -Lorg/apache/cayenne/rop/HttpClientConnection; url username readTimeout Ljava/lang/Long; L(Lorg/eclipse/jetty/client/HttpClient;Ljava/lang/String;Ljava/lang/String;)V Code LineNumberTable LocalVariableTable this 3Lorg/apache/cayenne/rop/http/JettyHttpROPConnector;
StackMapTable ? ? ? setClientConnection 0(Lorg/apache/cayenne/rop/HttpClientConnection;)V setReadTimeout (Ljava/lang/Long;)V establishSession ()Ljava/io/InputStream; response .Lorg/eclipse/jetty/client/api/ContentResponse; e Ljava/lang/Exception; ?
Exceptions establishSharedSession )(Ljava/lang/String;)Ljava/io/InputStream; sharedSessionName sendMessage ([B)Ljava/io/InputStream; request &Lorg/eclipse/jetty/client/api/Request; listener ;Lorg/eclipse/jetty/client/util/InputStreamResponseListener; 'Lorg/eclipse/jetty/client/api/Response; message [B ? ? ? close ()V addSessionCookie )(Lorg/eclipse/jetty/client/api/Request;)V session )Lorg/apache/cayenne/remote/RemoteSession;
SourceFile JettyHttpROPConnector.java ^ ? ? ? ? \ ] "java/lang/IllegalArgumentException \org.eclipse.jetty.client.HttpClient should be provided for this ROPConnector implementation. ^ ? V W Z S [ S X Y P Q ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #org/apache/cayenne/rop/ROPConstants operation establish_session ? ? ? ? java/io/ByteArrayInputStream ^
java/lang/Exception java/lang/InterruptedException
? java/io/IOException $Exception while establishing session ^ ? establish_shared_session session_name java/lang/StringBuilder -Exception while establishing shared session: application/octet-stream gzip 2org/eclipse/jetty/client/util/BytesContentProvider ^ ? ? 9org/eclipse/jetty/client/util/InputStreamResponseListener!"# ?$% 8Did not receive successful HTTP response: status code = & , status message = [' ]( n Exception while sending message) ?* ? )Exception while stopping Jetty HttpClient+,-./0 1org/apache/cayenne/rop/http/JettyHttpROPConnector JSESSIONID=123 java/lang/Object #org/apache/cayenne/rop/ROPConnector
JSESSIONID #org/eclipse/jetty/client/HttpClient java/lang/String $org/eclipse/jetty/client/api/Request %org/eclipse/jetty/client/api/Response java/lang/Long valueOf (J)Ljava/lang/Long; (Ljava/lang/String;)V org/apache/commons/logging/Log
isInfoEnabled ()Z org/apache/cayenne/rop/ROPUtil
getLogConnect 9(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String; info (Ljava/lang/Object;)V
newRequest :(Ljava/lang/String;)Lorg/eclipse/jetty/client/api/Request; !org/eclipse/jetty/http/HttpMethod POST #Lorg/eclipse/jetty/http/HttpMethod; method K(Lorg/eclipse/jetty/http/HttpMethod;)Lorg/eclipse/jetty/client/api/Request; param L(Ljava/lang/String;Ljava/lang/String;)Lorg/eclipse/jetty/client/api/Request; longValue ()J java/util/concurrent/TimeUnit SECONDS Ljava/util/concurrent/TimeUnit; timeout H(JLjava/util/concurrent/TimeUnit;)Lorg/eclipse/jetty/client/api/Request; send 0()Lorg/eclipse/jetty/client/api/ContentResponse; ,org/eclipse/jetty/client/api/ContentResponse
getContent ()[B ([B)V java/lang/Thread
currentThread ()Ljava/lang/Thread; interrupt *(Ljava/lang/String;Ljava/lang/Throwable;)V K(Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)Ljava/lang/String; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; !org/eclipse/jetty/http/HttpHeader CONTENT_TYPE #Lorg/eclipse/jetty/http/HttpHeader; header ](Lorg/eclipse/jetty/http/HttpHeader;Ljava/lang/String;)Lorg/eclipse/jetty/client/api/Request; ACCEPT_ENCODING ([[B)V content V(Lorg/eclipse/jetty/client/api/ContentProvider;)Lorg/eclipse/jetty/client/api/Request;4 CompleteListener InnerClasses ;(Lorg/eclipse/jetty/client/api/Response$CompleteListener;)V get I(JLjava/util/concurrent/TimeUnit;)Lorg/eclipse/jetty/client/api/Response; getStatus ()I (I)Ljava/lang/StringBuilder; getReason getInputStream getLogDisconnect stop +org/apache/cayenne/rop/HttpClientConnection
getSession +()Lorg/apache/cayenne/remote/RemoteSession; 'org/apache/cayenne/remote/RemoteSession getSessionId COOKIE %org/apache/commons/logging/LogFactory getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; 6org/eclipse/jetty/client/api/Response$CompleteListener ! K N O
P Q R S T U V W X Y Z S [ S \ ] ^ _ ` ? ,*? * ? ? +?
? Y? ?*+? *,?
*-? ? a " > <