org.apache.cayenne.rop.JettyHttpClientConnectionProvider.class Maven / Gradle / Ivy
???? 4 ?
w ; x y z { |
; } ~ ;
? ?
?
? ? ? ? ?
? ? ????????? { ?
; ?
; ? ?
?
? ?
? ? ?
w
?
? ? ? ?
# ? ? ? ; ? ? ? ? ? ? ? ? ?
- w ?
- ? ?
- ? ? ?
? ?
? ?
5 ? ? ?
; ?
? ? ? ? logger Lorg/apache/commons/logging/Log; runtimeProperties 4Lorg/apache/cayenne/configuration/RuntimeProperties; RuntimeVisibleAnnotations Lorg/apache/cayenne/di/Inject; serializationService 0Lorg/apache/cayenne/rop/ROPSerializationService; ()V Code LineNumberTable LocalVariableTable this :Lorg/apache/cayenne/rop/JettyHttpClientConnectionProvider; get .()Lorg/apache/cayenne/remote/ClientConnection;
sharedSession Ljava/lang/String; ropConnector 3Lorg/apache/cayenne/rop/http/JettyHttpROPConnector;
remoteService +Lorg/apache/cayenne/rop/ProxyRemoteService; clientConnection -Lorg/apache/cayenne/rop/HttpClientConnection;
Exceptions ? createJettyHttpRopConnector 5()Lorg/apache/cayenne/rop/http/JettyHttpROPConnector; url username readTimeout J
httpClient %Lorg/eclipse/jetty/client/HttpClient; result
StackMapTable ? ? ? ? initJettyHttpClient '()Lorg/eclipse/jetty/client/HttpClient; e Ljava/lang/Exception; ? addBasicAuthentication L(Lorg/eclipse/jetty/client/HttpClient;Ljava/lang/String;Ljava/lang/String;)V auth 2Lorg/eclipse/jetty/client/api/AuthenticationStore; password realm ()Ljava/lang/Object; Signature `Ljava/lang/Object;Lorg/apache/cayenne/di/Provider;
SourceFile &JettyHttpClientConnectionProvider.java E F ? @ *org/apache/cayenne/configuration/Constants cayenne.rop.shared_session_name ? L ? X Y )org/apache/cayenne/rop/ProxyRemoteService C D E ? +org/apache/cayenne/rop/HttpClientConnection E ? ? ? cayenne.rop.service_url )org/apache/cayenne/ConfigurationException 9No property defined for '%s', can't initialize connection java/lang/Object E ? cayenne.rop.service_username cayenne.rop.service_timeout ? ? f g k l 1org/apache/cayenne/rop/http/JettyHttpROPConnector E l ? ? ? ? ? #org/eclipse/jetty/client/HttpClient ,org/eclipse/jetty/util/ssl/SslContextFactory E ? ? F java/lang/Exception *org/apache/cayenne/CayenneRuntimeException *Exception while starting Jetty HttpClient. E ? cayenne.rop.service_password cayenne.rop.service_realm = > ? ? ? nIn order to use JettyClient with BASIC Authentication you should provide Constants.ROP_SERVICE_REALM_PROPERTY. ? ? ? ? java/lang/StringBuilder Adding authentication
User: ? ?
Realm: ? ? ? ? ? ? 1org/eclipse/jetty/client/util/BasicAuthentication ? ? ? E ? ? ? ? L M ? ? ? 8org/apache/cayenne/rop/JettyHttpClientConnectionProvider org/apache/cayenne/di/Provider (org/apache/cayenne/di/DIRuntimeException java/lang/String 2org/apache/cayenne/configuration/RuntimeProperties &(Ljava/lang/String;)Ljava/lang/String; X(Lorg/apache/cayenne/rop/ROPSerializationService;Lorg/apache/cayenne/rop/ROPConnector;)V >(Lorg/apache/cayenne/remote/RemoteService;Ljava/lang/String;)V setClientConnection 0(Lorg/apache/cayenne/rop/HttpClientConnection;)V ((Ljava/lang/String;[Ljava/lang/Object;)V getLong (Ljava/lang/String;J)J java/lang/Long valueOf (J)Ljava/lang/Long; setReadTimeout (Ljava/lang/Long;)V 1(Lorg/eclipse/jetty/util/ssl/SslContextFactory;)V start =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V org/apache/commons/logging/Log
isWarnEnabled ()Z warn (Ljava/lang/Object;)V
isInfoEnabled append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; info getAuthenticationStore 4()Lorg/eclipse/jetty/client/api/AuthenticationStore; java/net/URI create "(Ljava/lang/String;)Ljava/net/URI; G(Ljava/net/URI;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V 0org/eclipse/jetty/client/api/AuthenticationStore addAuthentication 0(Lorg/eclipse/jetty/client/api/Authentication;)V %org/apache/commons/logging/LogFactory getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; ! ; <