
org.apache.cayenne.remote.hessian.HessianConnection.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cayenne-client Show documentation
Show all versions of cayenne-client Show documentation
An aggregation of 1.4, 1.5 modules into an ROP client jar.
???? 3?
T ?
Y ? ? ?
? T ? T ? T ? T ? T ?
T ?
T ?
? ?
? ?
? ?
? ? ?
? ?
? ?
? ? ? ? ? ? ?
? T ? > ? ?
T ? ?
T ? T ? ? ?
? ? ? ?
$ ?
$ ? ? ? ? ? ? ?
$ ? ? ? ?
0 ? T ?
? ?
0 ? ?
5 ?
0 ?
0 ?
0 ?
T ?
0 ?
0 ? T ? ?
0 ? ? > ? > ?
$ ? ?
$ ? ?
$ ? ? ? ? ? ?
?
? ? ? ?
O ? ?
Q ?
? ? ?
?
? ? logger Lorg/apache/commons/logging/Log; CLIENT_SERIALIZER_FACTORIES [Ljava/lang/String; url Ljava/lang/String; userName password sharedSessionName session )Lorg/apache/cayenne/remote/RemoteSession; service )Lorg/apache/cayenne/remote/RemoteService; serializerFactory )Lcom/caucho/hessian/io/SerializerFactory; (Ljava/lang/String;)V Code LineNumberTable LocalVariableTable this 5Lorg/apache/cayenne/remote/hessian/HessianConnection; K(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
StackMapTable ? getUrl ()Ljava/lang/String; getUserName getPassword getSharedSessionName getServerEventBridge (()Lorg/apache/cayenne/event/EventBridge;
Exceptions createServerEventBridge Q(Lorg/apache/cayenne/remote/RemoteSession;)Lorg/apache/cayenne/event/EventBridge; factory -Lorg/apache/cayenne/event/EventBridgeFactory; ex Ljava/lang/Exception; ?
getSession +()Lorg/apache/cayenne/remote/RemoteSession; beforeSendMessage ,(Lorg/apache/cayenne/remote/ClientMessage;)V message )Lorg/apache/cayenne/remote/ClientMessage;
doSendMessage =(Lorg/apache/cayenne/remote/ClientMessage;)Ljava/lang/Object; e ,Lorg/apache/cayenne/CayenneRuntimeException; errorMessage th Ljava/lang/Throwable; ? ? connect ()V log Ljava/lang/StringBuilder; time J t0 /Lcom/caucho/hessian/client/HessianProxyFactory; ? ? buildExceptionMessage ;(Ljava/lang/String;Ljava/lang/Throwable;)Ljava/lang/String; buffer thMessage unwindThrowable ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; cause getSerializerFactory +()Lcom/caucho/hessian/io/SerializerFactory;
SourceFile HessianConnection.java i p i ? "java/lang/IllegalArgumentException URL of Cayenne service is null. i j ^ _ ` _ a _ b _ c d ? ? | } u
+org/apache/cayenne/event/EventBridgeFactory
u java/lang/Exception *org/apache/cayenne/CayenneRuntimeException Error creating EventBridge. java/lang/Object i e f ? java/lang/Throwable ? ? Remote error ? ? Z [ java/lang/StringBuilder Connecting to [ :******* @ ] - shared session ' ' - dedicated session. u -com/caucho/hessian/client/HessianProxyFactory \ ] !"#$ =org/apache/cayenne/remote/hessian/HessianURLConnectionFactory i%&'( j) j*+, ? ? g h 'org/apache/cayenne/remote/RemoteService-. URL error/01 ? === Connected, session: 2 - took 3 ms. !Error establishing remote session4 . URL - 5 u678
; CAUSE - .com/caucho/hessian/io/HessianProtocolException9: 1com/caucho/hessian/client/HessianRuntimeException; ? 3org/apache/cayenne/remote/hessian/HessianConnection<=> java/lang/String 9org/apache/cayenne/remote/hessian/ClientSerializerFactory (org/apache/cayenne/remote/BaseConnection 'org/apache/cayenne/remote/RemoteSession isServerEventsEnabled ()Z getEventBridgeFactory java/lang/Class forName %(Ljava/lang/String;)Ljava/lang/Class; newInstance ()Ljava/lang/Object; getSubjects ()Ljava/util/Collection; getName getEventBridgeParameters ()Ljava/util/Map; createEventBridge _(Ljava/util/Collection;Ljava/lang/String;Ljava/util/Map;)Lorg/apache/cayenne/event/EventBridge; =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V processMessage org/apache/commons/logging/Log
isInfoEnabled java/lang/System currentTimeMillis ()J append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString info (Ljava/lang/Object;)V /org/apache/cayenne/remote/hessian/HessianConfig
createFactory e([Ljava/lang/String;Lorg/apache/cayenne/map/EntityResolver;)Lcom/caucho/hessian/io/SerializerFactory; setSerializerFactory ,(Lcom/caucho/hessian/io/SerializerFactory;)V 8(Lorg/apache/cayenne/remote/hessian/HessianConnection;)V setConnectionFactory 7(Lcom/caucho/hessian/client/HessianConnectionFactory;)V setUser setPassword getReadTimeout setReadTimeout (J)V create 7(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object; establishSharedSession =(Ljava/lang/String;)Lorg/apache/cayenne/remote/RemoteSession; establishSession -(Ljava/lang/Object;)Ljava/lang/StringBuilder; (J)Ljava/lang/StringBuilder; *(Ljava/lang/Object;Ljava/lang/Throwable;)V
getMessage org/apache/cayenne/util/Util
isEmptyString (Ljava/lang/String;)Z getRootCause ()Ljava/lang/Throwable; unwindException %org/apache/commons/logging/LogFactory getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; ! T Y
Z [ \ ] ^ _ ` _ a _ b _ c d e f g h i j k A *+? ? l
D E m n o ^ _ i p k ? (*? +?
? Y? ?*+? *,? *-? *? ? l " M N O R S T ! U ' V m 4 ( n o ( ^ _ ( ` _ ( a _ ( b _ q ? r s s s s t u k / *? ? l \ m n o v u k / *? ? l d m n o w u k / *? ? l l m n o x u k / *? ? l p m n o y z k O *?
? *? **?
? ? l u v y m n o q { | } k ? 9+?
? ?+? ? ? ? M,? +? +? ? ?M? Y,? ? ? ( ) l &