![JAR search and dependency download from the Maven repository](/logo.png)
com.ibm.ims.connect.impl.ConnectionImpl.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of IMSConnectAPI Show documentation
Show all versions of IMSConnectAPI Show documentation
API that allows Java applications to interface with IMS Connect
The newest version!
???? 2? 'com/ibm/ims/connect/impl/ConnectionImpl java/lang/Object com/ibm/ims/connect/Connection java/lang/Runnable copyright Ljava/lang/String;
ConstantValue
?Licensed Material - Property of IBM 5655-TDA(C) Copyright IBM Corp. 2009,2013 All Rights Reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. myTmInteraction #Lcom/ibm/ims/connect/TmInteraction; myConnection Lcom/ibm/ims/connect/Connection; hostName
portNumber I
socketType B clientId sslEncryptionType sslKeystoreInputStream Ljava/io/InputStream; sslKeystoreUrl Ljava/net/URL; sslKeystoreName sslKeystorePassword sslTruststoreInputStream sslTruststoreUrl sslTruststoreName sslTruststorePassword useSslConnection Z
sslContext Ljavax/net/ssl/SSLContext; sslCertType sslSocket Ljavax/net/ssl/SSLSocket; interactionTimeout setSoTimeoutRequired socketConnectTimeout isConnected
validChars 0 ?abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890- validLetters 3 4abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ s imsConnectCodepage socket Ljava/net/Socket; logger Ljava/util/logging/Logger; hook Ljava/lang/Thread; updateIrmClientId returnedClientID ()V
Exceptions C *com/ibm/ims/connect/ImsConnectApiException Code
F ? @ H J L HOSTNAME N
P R T V
X Z [ !DEFAULT_SSL_KEYSTORE_INPUT_STREAM ] _ ` DEFAULT_SSL_KEYSTORE_URL b d e
DEFAULT_SSL_KEYSTORE_NAME g
i keystrPw k
m n #DEFAULT_SSL_TRUSTSTORE_INPUT_STREAM p r s DEFAULT_SSL_TRUSTSTORE_URL u w x
DEFAULT_SSL_TRUSTSTORE_NAME z !
| trststPw ~ "
? # $ ? % & ? '
? ( ) ? * ? + $ ? , ? - $ ? 7 8 ? ; < ? = $ ? > $ ? com.ibm.ims.connect
? ? ? java/util/logging/Logger ? ? getLogger .(Ljava/lang/String;)Ljava/util/logging/Logger; ? 9 : ? ? ? !com/ibm/ims/connect/ApiProperties ? ? TRACE_LEVEL_ENTRY_EXIT Ljava/util/logging/Level;
? ? ? ?
isLoggable (Ljava/util/logging/Level;)Z ? <-> ConnectionImpl()...
? ? ? ? finer (Ljava/lang/String;)V LineNumberTable LocalVariableTable this )Lcom/ibm/ims/connect/impl/ConnectionImpl;
StackMapTable *(Lcom/ibm/ims/connect/ConnectionFactory;)V ? (--> ConnectionImpl(ConnectionFactory)...
? ? ? %com/ibm/ims/connect/ConnectionFactory ? ? getClientId ()Ljava/lang/String;
? ? ? setClientId
? ? ? ? getHostName
? ? ? setHostName
? ? ? ?
getPortNumber ()I
? ? ?
setPortNumber (I)V
? ? ? ? getInteractionTimeout
? ? ? setInteractionTimeout
? ? ? ? getSocketConnectTimeout
? ? ? setSocketConnectTimeout
? ? ? ?
getSocketType ()B
? ? ?
setSocketType (B)V ? ? ? ? TRACE_LEVEL_INTERNAL ? java/lang/StringBuilder ? ! Connection.clientID set to [
? ? ? ?
?
? ? ? ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ]
? ? ? ? toString ? ! Connection.hostName set to [
? ? # Connection.portNumber set to [
?
? ? ? ? (I)Ljava/lang/StringBuilder; + Connection.interactionTimeout set to [
? - Connection.socketConnectTimeout set to [
? # Connection.socketType set to [
?
?
isUseSslConnection ()Z
? ? getSslEncryptionType
? setSslEncryptionType
? getSslKeystoreInputStream ()Ljava/io/InputStream;
setSslKeystoreInputStream (Ljava/io/InputStream;)V
? getSslKeystoreUrl ()Ljava/net/URL;
!" setSslKeystoreUrl (Ljava/net/URL;)V
?$% ? getSslKeystoreName
'( ? setSslKeystoreName
?*+ ? getSslKeystorePassword
-. ? setSslKeystorePassword
?01 getSslTruststoreInputStream
34 setSslTruststoreInputStream
?67 getSslTruststoreUrl
9:" setSslTruststoreUrl
?<= ? getSslTruststoreName
?@ ? setSslTruststoreName
?BC ? getSslTruststorePassword
EF ? setSslTruststorePassword
HIJ setUseSslConnection (Z)VL * Connection.sslEncryptionType set to [
O / Connection.sslKeystoreInputStream set to [
?R ?S -(Ljava/lang/Object;)Ljava/lang/StringBuilder;U ' Connection.sslKeystoreUrl set to [
X ( Connection.sslKeystoreName set to [
$[ , Connection.sslKeystorePassword set to [] java/lang/String_ ********
\ ?b 1 Connection.sslTruststoreInputStream set to [
0e ) Connection.sslTruststoreUrl set to [
6h * Connection.sslTruststoreName set to [
<k . Connection.sslTruststorePassword set to [m ) Connection.useSslConnection set to [
?p ?q (Z)Ljava/lang/StringBuilder;s !<-- ConnectionImpl(Connection)... aConnectionFactory 'Lcom/ibm/ims/connect/ConnectionFactory; closex --> ConnectionImpl.close()...z Socket
|}~ equals (Ljava/lang/Object;)Z? SSL socket
??? java/net/Socketv @
\??? valueOf &(Ljava/lang/Object;)Ljava/lang/String;? connection with clientId [? ] to hostname [? ], portNumber [? ] now
??? isClosed? closed?
not closed? ! Socket object now set to null
??J setSetSoTimeoutRequired ??? ? TRACE_LEVEL_EXCEPTION? C Exception caught in Connection.close(). Exception caught was:
? ?? java/lang/Exception
??? ? severe
??J setIsConnected? <-- ConnectionImpl.close()... socketTypeString e Ljava/lang/Exception;? java/lang/Throwable connect? 4com/ibm/ims/connect/ImsConnectCommunicationException? java/net/SocketException? --> ConnectionImpl.connect()...
? -? HWS0034E
??? *com/ibm/ims/connect/ImsConnectErrorMessage?? getString 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
B? ?? '(Ljava/lang/String;Ljava/lang/String;)V? E Exception thrown in Connection.connect(). Exception thrown was:
B ?
? F? java/net/InetSocketAddress
?? ?? (Ljava/lang/String;I)V
???? (Ljava/net/SocketAddress;)V
???? (Ljava/net/SocketAddress;I)V? HWS0025E? Socket connect
??? java/lang/Integer?? (I)Ljava/lang/Integer;
???? getExceptionMessage )(Ljava/lang/Exception;)Ljava/lang/String;
??? E Exception caught in Connection.connect(). Exception caught was:
? ?? java/net/SocketTimeoutException? HWS0006E
\??? (I)Ljava/lang/String;
? ?? @ ConnectionImpl.connect() - Non-SSL connection for clientId [? ] ? not open? now open
??? ? finest
??? initContext ?(Ljava/io/InputStream;Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Ljava/io/InputStream;Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;)V
? ? javax/net/ssl/SSLContext getSocketFactory "()Ljavax/net/ssl/SSLSocketFactory;
validateHostName &(Ljava/lang/String;)Ljava/lang/String;
validatePortNumber (I)I
javax/net/ssl/SSLSocketFactory createSocket &(Ljava/lang/String;I)Ljava/net/Socket; javax/net/ssl/SSLSocket
? setSupportedCipherSuites
getSession ()Ljavax/net/ssl/SSLSession; javax/net/ssl/SSLSession isValid " INVALID_SSLSESSION
?$?
? ?' ; ConnectionImpl.connect() - SSL connection for clientId [
?* 9 ConnectionImpl.connect() - SSL Cipher Suite used is : ,- ? getCipherSuite/ HWS0010E
?1 ??3 '
\567
replaceAll 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
9: isSetSoTimeoutRequired
<= @ setSoTimeout
??@J
setTcpNoDelayB <-- ConnectionImpl.connect()... errMsg ,Lcom/ibm/ims/connect/ImsConnectApiException; endpoint Ljava/net/SocketAddress; e1 !Ljava/net/SocketTimeoutException; e2 6Lcom/ibm/ims/connect/ImsConnectCommunicationException; e3
sslSession Ljavax/net/ssl/SSLSession; factory Ljavax/net/ssl/SSLSocketFactory; invalidSslSessionString e4 e5T java/net/SocketAddress
disconnectW "--> ConnectionImpl.disconnect()...
Y[Z java/lang/Runtime\]
getRuntime ()Ljava/lang/Runtime;
Y_`a removeShutdownHook (Ljava/lang/Thread;)Z
?d "<-- ConnectionImpl.disconnect()... createInteraction %()Lcom/ibm/ims/connect/TmInteraction;h )--> ConnectionImpl.createInteraction()...j *com/ibm/ims/connect/impl/TmInteractionImpl
i F
imno
setConnection ,(Lcom/ibm/ims/connect/impl/ConnectionImpl;)Vq )<-- ConnectionImpl.createInteraction()... R(Lcom/ibm/ims/connect/TmInteractionAttributes;)Lcom/ibm/ims/connect/TmInteraction;t @--> ConnectionImpl.createInteraction(TmInteractionAttributes)...
iv ?w 0(Lcom/ibm/ims/connect/TmInteractionAttributes;)Vy @<-- ConnectionImpl.createInteraction(TmInteractionAttributes)... aTMInteractionAttributes -Lcom/ibm/ims/connect/TmInteractionAttributes; hashKey
\~? (Z)Ljava/lang/String; hasValue
??? getClass ()Ljava/lang/Class;
\?? ? trim
\?? ? length inObj Ljava/lang/Object;? ?--> ConnectionImpl.initContext(String aKeyStoreName, String aKeyStorePasswd, String aTrustStoreName, String aTrustStorePasswd)...? java.vendor
??? java/lang/System? getProperty? IBM Corporation
\|? SunX509? IbmX509? javax.net.debug? false
???7 setProperty
??? javax/net/ssl/KeyManagerFactory?? getInstance 5(Ljava/lang/String;)Ljavax/net/ssl/KeyManagerFactory;
??? !javax/net/ssl/TrustManagerFactory?? 7(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory;
??~
\??? toCharArray ()[C? JKS
??? java/security/KeyStore?? ,(Ljava/lang/String;)Ljava/security/KeyStore;
??? java/net/URL?
openStream? java/io/FileInputStream
? ?
???? load (Ljava/io/InputStream;[C)V
??? java/io/InputStream
???? init (Ljava/security/KeyStore;[C)V
???? getKeyManagers ()[Ljavax/net/ssl/KeyManager;
???? (Ljava/security/KeyStore;)V
???? getTrustManagers ()[Ljavax/net/ssl/TrustManager;? TLS
???? .(Ljava/lang/String;)Ljavax/net/ssl/SSLContext;
???? W([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V? HWS0009E? I Exception caught in Connection.initContext(). Exception caught was: ? ?<-- ConnectionImpl.initContext(String aKeyStoreName, String aKeyStorePasswd, String aTrustStoreName, String aTrustStorePasswd)... aKeystoreInputStream aKeystoreUrl
aKeystoreName aKeyStorePasswd aTruststoreInputStream aTruststoreUrl aTruststoreName aTrustStorePasswd kmf !Ljavax/net/ssl/KeyManagerFactory; keystoreInputStream tmf #Ljavax/net/ssl/TrustManagerFactory; truststoreInputStream tm [Ljavax/net/ssl/TrustManager; km [Ljavax/net/ssl/KeyManager; ks Ljava/security/KeyStore; ts ksPass [C tsPass??? loadConnectionAttributesFromFile (com/ibm/ims/connect/PropertiesFileLoader
F
loadPropertiesFile '(Ljava/lang/Object;Ljava/lang/String;)V aConnectionAttributesFileName myPropertiesFileLoader *Lcom/ibm/ims/connect/PropertiesFileLoader; "loadConnectionAttributesFromObject -(Lcom/ibm/ims/connect/ConnectionAttributes;)V
? (com/ibm/ims/connect/ConnectionAttributes
?
?
?
?
$
*
<
B
aConnectionAttributes *Lcom/ibm/ims/connect/ConnectionAttributes; @--> ConnectionImpl.setSupportedCipherSuites(byte aEncrypType)...
!"# getSupportedCipherSuites ()[Ljava/lang/String;% anon
\'() indexOf (Ljava/lang/String;)I+ EXPORT- NULL
?/01 arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V
345 setEnabledCipherSuites ([Ljava/lang/String;)V7 @<-- ConnectionImpl.setSupportedCipherSuites(byte aEncrypType)... aEncrypType i
ci_nonanon w n cipherSuites [Ljava/lang/String; tmpStrongCipherSuites tmpWeakCipherSuites tmpNullCipherSuites
tempString strongCipherSuites weakCipherSuites nullCipherSuites> receive ()[BJ --> ConnectionImpl.receive()...LNM !com/ibm/ims/connect/TmInteractionO ? getImsConnectCodepage Q 6
?STU currentTimeMillis ()JW NO_CONNY HWS0008E[ E Exception thrown in Connection.receive(). Exception thrown was: ] java/io/DataInputStream
?_` getInputStream
\b ?Lde isResponseIncludesLlll
\ghi readFully ([BII)V
kml $com/ibm/ims/connect/NumberConversionno parseByteArrayToInt ([BI)I
\qhr ([B)V
ktuv parseByteArrayToShort ([BI)S
\x ?y ([BLjava/lang/String;)V
{U @} Interaction
? ? ?
\??? substring (II)Ljava/lang/String;? *CORTKN*L?? isReturnMfsModnameL?? isReturnClientId? *CSMOKY*
??? java/lang/Thread?? sleep (J)V? *REQSTS*
\???
i??? formatBufferForTracing ([BZ)Ljava/lang/String;
i??? stringToStringArray '(Ljava/lang/String;)[Ljava/lang/String;? [ Connection.receive() - Buffer received from stringbuffer: (may be corrupt or incomplete)? a Connection.receive() - Buffer received from receive byte array: (may be corrupt or incomplete)? <-- ConnectionImpl.receive()...
??? ? getSoTimeout? T Exception caught while processing SocketTimeoutException in Connection.receive()? Exception caught was: [
? ?? * Original SocketExceptionTimeout was: [? R SocketTimeoutException caught in Connection.receive(). Exception caught was: ? G IOException caught in Connection.receive(). Exception caught was: ? HWS0001E? E Exception caught in Connection.receive(). Exception caught was: ? java/io/IOException len inBytes [B tempBytes llllBytes llBytes
secondLlBytes responseDataInputStream Ljava/io/DataInputStream;
bytesAsString interactionTimeoutValue interactionTimeoutWaitForever interactionTimeoutTime J exceptionCaught internalMsg sleepTime numberOfCalloutRequestSegments bytesAsStringLen sockTimeoutStr sockTimeout Ljava/net/SocketException; Ljava/io/IOException; e6 e7
inBytesLength obfuscatePassword bufferReceived bufferReceivedStringArray? send? "--> ConnectionImpl.send(byte[])...? H Exception thrown in Connection.send(byte[]). Exception thrown was:
???? getOutputStream ()Ljava/io/OutputStream;
??? java/io/OutputStream?r write? J IOException caught in Connection.send(byte[]). Exception caught was: ? "<-- ConnectionImpl.send(byte[])... outBytes out Ljava/io/OutputStream;
??? isValidHostStyleName (Ljava/lang/String;)Z
\?? ? toUpperCase? HWS0026E ? 8? N Exception thrown in Connection.setClientId(String). Exception thrown was: ? HWS0029E? clientID HWS0033E aClientId \.
\? split
? ) parseInt
\
charAt (I)C
\(
\ getChars (II[CI)V VALID_PROPERTY_VALUE_HOSTNAME HWS0030E N Exception caught in Connection.setHostName(String). Exception caught was:
\? equalsIgnoreCase N Exception thrown in Connection.setHostName(String). Exception thrown was: aHostName octet result valid ipAddress
numberOfNodes charBuf strLen j validHostnameString+ HWS0007E- )ConnectionImpl.setInteractionTimeout(int)/ U Exception thrown in Connection.setInteractionTimeout(int). Exception thrown was: anInteractionTimeout ?? 4 M Exception thrown in Connection.setPortNumber(int). Exception thrown was: 6 VALID_PROPERTY_VALUE_PORTNUMBER8 N Exception thrown in Connection.setPortNumber(int). Exception thrown was: aPortNumber validPortNumberString getSocket ()Ljava/net/Socket; setSocket (Ljava/net/Socket;)V@ +ConnectionImpl.setSocketConnectTimeout(int)B T Exception thrown in Connection.setSocketConnectTimeout(). Exception thrown was: aSocketConnectTimeout F N Exception thrown in Connection.setSocketType(byte). Exception thrown was: H VALID_PROPERTY_VALUE_SOCKETTYPEJ O Exception thrown in Connection.setSocketType(byte). Exception thrown was: aSocketType validSocketTypeString O U Exception thrown in Connection.setSslEncryptionType(byte). Exception thrown was: Q &VALID_PROPERTY_VALUE_SSLENCRYPTIONTYPES V Exception thrown in Connection.setSslEncryptionType(byte). Exception thrown was: anSslEncryptionType validSslEncryptionTypeString anSslKeystoreInputStream anSslKeystoreUrlY anSslKeystoreName
*\ anSslKeystorePassword^ Y Exception thrown in Connection.setSslKeystorePassword(String). Exception thrown was: anSslTruststoreUrla anSslTruststoreNamec W Exception thrown in Connection.setSslTruststoreName(String). Exception thrown was:
Bf [ Exception thrown in Connection.setSslTruststorePassword(String). Exception thrown was: anSslTruststorePassword
ij# getEnabledCipherSuites #m V Exception thrown in Connection.setUseSslConnection(String). Exception thrown was: aUseSslConnection
anIsConnected
?q= ?s HWS0037Eu socket.setSoTimeout()w I Exception thrown in Connection.setSoTimeout(). Exception thrown was: run
? F{ , buf Ljava/lang/StringBuilder; finalize? o Exception thrown in Connection.finalize() while removing unused Connection instance. Exception thrown was: host port
SourceFile ConnectionImpl.java 1 !
!
"
# $ % &