idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
159,200
private int getUnSeenMessageCount ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getUnseenMessageCount" ) ; int remain = 0 ; for ( int x = nextIndex ; x < messages . length ; x ++ ) { if ( messages [ x ] != null ) remain ++ ; } if ( TraceComponent . isAnyTr...
Private method to determine how many messages have not been seen as yet . It does this by looking at the number of non - null elements from the current item to the end of the array .
159,201
public void unlockUnseen ( ) throws SIResourceException , SIConnectionDroppedException , SIConnectionLostException , SIIncorrectCallException , SIMessageNotLockedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "unlockUnseen" ) ; SIMessageHandle [ ] idsT...
begin F219476 . 2
159,202
public ConsumerSession getConsumerSession ( ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getConsumerSession" ) ; checkValid ( ...
Returns the consumer session this enumeration contains messages delivered to .
159,203
protected void markInvalid ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "markInvalid" ) ; invalid = true ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "markInvalid" ) ; }
Marks the enumeration as invalid . This is called once the asynchronous consumer callback returns to ensure that this locked message enumeration cannot be used from outside the callback .
159,204
public boolean shouldRedirectToHttps ( WebRequest webRequest ) { HttpServletRequest req = webRequest . getHttpServletRequest ( ) ; return ! req . isSecure ( ) && webRequest . isSSLRequired ( ) ; }
Determines if HTTPS redirect is required for this request .
159,205
public WebReply getHTTPSRedirectWebReply ( HttpServletRequest req ) { Integer httpsPort = ( Integer ) SRTServletRequestUtils . getPrivateAttribute ( req , "SecurityRedirectPort" ) ; if ( httpsPort == null ) { Tr . error ( tc , "SSL_PORT_IS_NULL" ) ; return new DenyReply ( "Resource must be accessed with a secure connec...
Get the new URL for the redirect which contains the https port .
159,206
public void receive ( int requestNumber , int tran , long timeout ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "receive" , new Object [ ] { requestNumber , tran , timeout } ) ; if ( subConsumer == null ) { subConsumer = new CATSessSynchConsumer ( this ) ; } ...
Performs a receive on this consumer . This is only a valid operation when the consumer is in synchronous mode . If the sub consumer has not been set up then this has to be created here .
159,207
public void unsetAsynchConsumerCallback ( int requestNumber , boolean stoppable ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "unsetAsynchConsumerCallback" , "requestNumber=" + requestNumber + ",stoppable=" + stoppable ) ; checkNotBrowserSession ( ) ; if ( su...
This method will unset the asynch consumer callback . This means that the client has requested that the session should be converted from asynchronous to synchronous and so the sub consumer must be changed
159,208
public void start ( int requestNumber , boolean deliverImmediately , boolean sendReply , SendListener sendListener ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "start" , new Object [ ] { requestNumber , deliverImmediately , sendReply , sendListener } ) ; sta...
Start the consumer
159,209
public void setBifurcatedSession ( BifurcatedConsumerSession sess ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setBifurcatedSession" , sess ) ; subConsumer = new CATBifurcatedConsumer ( this , sess ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . i...
This method will put the main consumer into bifurcated mode .
159,210
private void tryRunNext ( ) { while ( runningSemaphore . tryAcquire ( ) ) { ExecutionTask execution = queue . poll ( ) ; if ( execution != null ) { try { execution . submit ( ) ; } catch ( Throwable e ) { runningSemaphore . release ( ) ; execution . exceptionHandler . handle ( e ) ; } } else { runningSemaphore . releas...
Attempt to run any queued executions
159,211
public final boolean removeExpirable ( Expirable expirable ) throws SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "removeExpirable" , "objId=" + ( expirable == null ? "null" : String . valueOf ( expirable . expirableGetID ( ) ) ) + " ET="...
Remove an Expirable reference for an item from the expiry index .
159,212
public final void start ( long expiryInterval , JsMessagingEngine jsme ) throws SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "start" , "interval=" + expiryInterval + " indexSize=" + expiryIndex . size ( ) ) ; messagingEngine = jsme ...
Start the expiry daemon .
159,213
public final void stop ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "stop" ) ; synchronized ( lockObject ) { addEnabled = false ; if ( runEnabled ) { runEnabled = false ; expirerStopTime = timeNow ( ) ; } if ( expiryAlarm != null ) { expiryAlarm . cancel (...
Stop the expiry daemon .
159,214
private final boolean remove ( ExpirableReference expirableRef , boolean expired ) { boolean reply = expiryIndex . remove ( ) ; if ( reply ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Removed (" + ( expired ? "expired" : "gone" ) + ")" + " ET=" + expirableRef . ge...
Remove the expirable reference from the expiry index . This will remove the current entry pointed - to by the iterator .
159,215
private int saveStartTime ( long time ) { int indexUsed = diagIndex ; alarmTime [ diagIndex ++ ] = time ; if ( diagIndex >= MAX_DIAG_LOG ) { diagIndex = 0 ; } return indexUsed ; }
Keep last n expiry cycle start times for diagnostic dump .
159,216
private void scheduleAlarm ( long timeOut ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "scheduleAlarm timeOut=" + timeOut ) ; synchronized ( lockObject ) { if ( ! alarmScheduled && ! alarming ) { expiryAlarm = AlarmManager . createNonDeferrable ( timeOut , t...
Schedule the next alarm . Callers of this method would typically hold lockObject already .
159,217
public void reset ( ) { expirationTimeFlag = UNSET ; inactivityFlag = UNSET ; idFlag = UNSET ; priorityFlag = UNSET ; sharingPolicyFlag = UNSET ; lock = UNSET ; id = null ; timeLimit = - 1 ; inactivity = - 1 ; expirationTime = - 1 ; validatorExpirationTime = - 1 ; priority = - 1 ; sharingPolicy = NOT_SHARED ; persistTo...
resets this EntryInfo for reuse
159,218
public void setId ( Object id ) { if ( lock == SET ) { throw new IllegalStateException ( "EntryInfo is locked" ) ; } idFlag = SET ; this . id = id ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "set id=" + id ) ; }
This sets the id variable .
159,219
public void setSharingPolicy ( int sharingPolicy ) { if ( lock == SET ) { throw new IllegalStateException ( "EntryInfo is locked" ) ; } sharingPolicyFlag = SET ; this . sharingPolicy = sharingPolicy ; if ( ( sharingPolicy != NOT_SHARED ) && ( sharingPolicy != SHARED_PUSH ) && ( sharingPolicy != SHARED_PULL ) && ( shari...
This sets the sharing policy in the sharingPolicy variable . Included for forward compatibility with distributed caches .
159,220
public void setTimeLimit ( int timeLimit ) { if ( lock == SET ) { throw new IllegalStateException ( "EntryInfo is locked" ) ; } expirationTimeFlag = SET ; this . timeLimit = timeLimit ; if ( timeLimit > 0 ) { long ttlmsec = ( ( long ) timeLimit ) * 1000 ; expirationTime = ttlmsec + System . currentTimeMillis ( ) ; } }
This sets the time limit in the timeLimit variable . Once an entry is cached it will remain in the cache for this many seconds
159,221
public int getInactivity ( ) { if ( com . ibm . ws . cache . TimeLimitDaemon . UNIT_TEST_INACTIVITY ) { System . out . println ( "EntryInfo.getInactivity() " + inactivity ) ; } return inactivity ; }
This gets the inactivity timer for this cache entry .
159,222
public void setInactivity ( int inactivity ) { if ( lock == SET ) { throw new IllegalStateException ( "EntryInfo is locked" ) ; } inactivityFlag = SET ; this . inactivity = inactivity ; if ( com . ibm . ws . cache . TimeLimitDaemon . UNIT_TEST_INACTIVITY ) { System . out . println ( "EntryInfo.setInactivity() " + inact...
This sets the inactivity timer variable . Once an entry is cached it will remain in the cache for this many seconds if not accessed .
159,223
public void setExpirationTime ( long expirationTime ) { if ( lock == SET ) { throw new IllegalStateException ( "EntryInfo is locked" ) ; } expirationTimeFlag = SET ; this . expirationTime = expirationTime ; this . timeLimit = ( int ) ( ( expirationTime - System . currentTimeMillis ( ) ) / 1000L ) ; }
This sets the expirationTime variable .
159,224
public void addTemplate ( String template ) { if ( lock == SET ) { throw new IllegalStateException ( "EntryInfo is locked" ) ; } if ( template != null && ! template . equals ( "" ) ) { templates . add ( template ) ; } }
This adds a template name to the templates variable .
159,225
public void addDataId ( Object dataId ) { if ( lock == SET ) { throw new IllegalStateException ( "EntryInfo is locked" ) ; } if ( dataId != null && ! dataId . equals ( "" ) ) { dataIds . add ( dataId ) ; } }
This unions a new data id into the dataIds variable .
159,226
public void addAlias ( Object alias ) { if ( lock == SET ) { throw new IllegalStateException ( "EntryInfo is locked" ) ; } if ( alias != null && ! alias . equals ( "" ) ) { aliasList . add ( alias ) ; } }
This unions a new alias into the aliasList variable .
159,227
@ FFDCIgnore ( Exception . class ) protected final void shutdownFramework ( ) { try { Bundle bundle = context . getBundle ( Constants . SYSTEM_BUNDLE_LOCATION ) ; if ( bundle != null ) bundle . stop ( ) ; } catch ( Exception e ) { } }
When an error occurs during startup then this method is used to stop the root bundle thus bringing down the OSGi framework .
159,228
List < String > getNames ( ) { if ( addrList == null ) return jmfNames ; return new AbstractList < String > ( ) { public int size ( ) { return addrList . size ( ) ; } public String get ( int index ) { return ( ( JsDestinationAddress ) addrList . get ( index ) ) . getDestinationName ( ) ; } } ; }
measurements may show otherwise .
159,229
public int readInt ( InputStream in ) throws ConversionException , IOException { JSONArray json = parseArray ( in ) ; if ( json . size ( ) != 1 ) { throwConversionException ( "readInt() expects one item in the array: [ Integer ]." , json ) ; } return readIntInternal ( json . get ( 0 ) ) ; }
Decode a JSON document to retrieve an integer value .
159,230
public boolean readBoolean ( InputStream in ) throws ConversionException , IOException { JSONArray json = parseArray ( in ) ; if ( json . size ( ) != 1 ) { throwConversionException ( "readBoolean() expects one item in the array: [ true | false ]." , json ) ; } return readBooleanInternal ( json . get ( 0 ) ) ; }
Decode a JSON document to retrieve an boolean value .
159,231
public String readString ( InputStream in ) throws ConversionException , IOException { JSONArray json = parseArray ( in ) ; if ( json . size ( ) != 1 ) { throwConversionException ( "readString() expects one item in the array: [ String ]." , json ) ; } return readStringInternal ( json . get ( 0 ) ) ; }
Decode a JSON document to retrieve a String value .
159,232
public Object readPOJO ( InputStream in ) throws ConversionException , IOException , ClassNotFoundException { return readPOJOInternal ( parse ( in ) ) ; }
Decode a JSON document to retrieve an Object .
159,233
public JMXServerInfo readJMX ( InputStream in ) throws ConversionException , IOException { JSONObject json = parseObject ( in ) ; JMXServerInfo ret = new JMXServerInfo ( ) ; ret . version = readIntInternal ( json . get ( N_VERSION ) ) ; ret . mbeansURL = readStringInternal ( json . get ( N_MBEANS ) ) ; ret . createMBea...
Decode a JSON document to retrieve a JMX instance .
159,234
public ObjectInstanceWrapper [ ] readObjectInstances ( InputStream in ) throws ConversionException , IOException { JSONArray json = parseArray ( in ) ; ObjectInstanceWrapper [ ] ret = new ObjectInstanceWrapper [ json . size ( ) ] ; int pos = 0 ; for ( Object item : json ) { ret [ pos ++ ] = readObjectInstanceInternal (...
Decode a JSON document to retrieve an ObjectInstanceWrapper array .
159,235
public MBeanQuery readMBeanQuery ( InputStream in ) throws ConversionException , IOException , ClassNotFoundException { JSONObject json = parseObject ( in ) ; MBeanQuery ret = new MBeanQuery ( ) ; ret . objectName = readObjectName ( json . get ( N_OBJECTNAME ) ) ; Object queryExp = readSerialized ( json . get ( N_QUERY...
Decode a JSON document to retrieve an MBeanQuery instance .
159,236
public CreateMBean readCreateMBean ( InputStream in ) throws ConversionException , IOException , ClassNotFoundException { JSONObject json = parseObject ( in ) ; CreateMBean ret = new CreateMBean ( ) ; ret . objectName = readObjectName ( json . get ( N_OBJECTNAME ) ) ; ret . className = readStringInternal ( json . get (...
Decode a JSON document to retrieve a CreateMBean instance .
159,237
@ SuppressWarnings ( "unchecked" ) public MBeanInfoWrapper readMBeanInfo ( InputStream in ) throws ConversionException , IOException , ClassNotFoundException { JSONObject json = parseObject ( in ) ; MBeanInfoWrapper ret = new MBeanInfoWrapper ( ) ; if ( USE_BASE64_FOR_MBEANINFO ) { Object o = readSerialized ( json . ge...
Decode a JSON document to retrieve an MBeanInfoWrapper instance .
159,238
public AttributeList readAttributeList ( InputStream in ) throws ConversionException , IOException , ClassNotFoundException { JSONArray json = parseArray ( in ) ; AttributeList ret = new AttributeList ( ) ; for ( Object item : json ) { if ( ! ( item instanceof JSONObject ) ) { throwConversionException ( "readAttributeL...
Decode a JSON document to retrieve an AttributeList instance .
159,239
public Invocation readInvocation ( InputStream in ) throws ConversionException , IOException , ClassNotFoundException { JSONObject json = parseObject ( in ) ; Invocation ret = new Invocation ( ) ; ret . params = readPOJOArray ( json . get ( N_PARAMS ) ) ; ret . signature = readStringArrayInternal ( json . get ( N_SIGNA...
Decode a JSON document to retrieve an Invocation instance .
159,240
public NotificationArea readNotificationArea ( InputStream in ) throws ConversionException , IOException { JSONObject json = parseObject ( in ) ; NotificationArea ret = new NotificationArea ( ) ; ret . registrationsURL = readStringInternal ( json . get ( N_REGISTRATIONS ) ) ; ret . serverRegistrationsURL = readStringIn...
Decode a JSON document to retrieve a NotificationArea instance .
159,241
public NotificationRegistration readNotificationRegistration ( InputStream in ) throws ConversionException , IOException , ClassNotFoundException { JSONObject json = parseObject ( in ) ; NotificationRegistration ret = new NotificationRegistration ( ) ; ret . objectName = readObjectName ( json . get ( N_OBJECTNAME ) ) ;...
Decode a JSON document to retrieve a NotificationRegistration instance .
159,242
public ServerNotificationRegistration readServerNotificationRegistration ( InputStream in ) throws ConversionException , IOException , ClassNotFoundException { JSONObject json = parseObject ( in ) ; ServerNotificationRegistration ret = new ServerNotificationRegistration ( ) ; String name = readStringInternal ( json . g...
Decode a JSON document to retrieve a ServerNotificationRegistration instance .
159,243
public boolean isSupportedNotificationFilter ( NotificationFilter filter ) { Class < ? > clazz = filter . getClass ( ) ; return clazz == AttributeChangeNotificationFilter . class || clazz == MBeanServerNotificationFilter . class || clazz == NotificationFilterSupport . class ; }
Check if a NotificationFilter is a standard filter that can be send to a JMX server .
159,244
public NotificationFilter [ ] readNotificationFilters ( InputStream in ) throws ConversionException , IOException , ClassNotFoundException { return readNotificationFiltersInternal ( parseArray ( in ) ) ; }
Decode a JSON document to retrieve a NotificationFilter array .
159,245
public Notification [ ] readNotifications ( InputStream in ) throws ConversionException , IOException , ClassNotFoundException { final NotificationRecord [ ] records = readNotificationRecords ( in ) ; final Notification [ ] ret = new Notification [ records . length ] ; for ( int i = 0 ; i < records . length ; ++ i ) { ...
Decode a JSON document to retrieve an array of Notification instances .
159,246
public NotificationSettings readNotificationSettings ( InputStream in ) throws ConversionException , IOException { JSONObject json = parseObject ( in ) ; NotificationSettings ret = new NotificationSettings ( ) ; ret . deliveryInterval = readIntInternal ( json . get ( N_DELIVERYINTERVAL ) ) ; ret . inboxExpiry = readInt...
Decode a JSON document to retrieve a NotificationSettings instance .
159,247
public Throwable readThrowable ( InputStream in ) throws ConversionException , IOException , ClassNotFoundException { byte [ ] byteInputStream = convertInputStreamToBytes ( in ) ; ByteArrayInputStream bais = new ByteArrayInputStream ( byteInputStream ) ; JSONObject json = null ; try { json = parseObject ( bais ) ; } ca...
Decode a JSON document to retrieve a Throwable instance .
159,248
private byte [ ] convertInputStreamToBytes ( InputStream in ) throws IOException { ByteArrayOutputStream buffer = new ByteArrayOutputStream ( ) ; int len ; byte [ ] data = new byte [ 16384 ] ; while ( ( len = in . read ( data , 0 , data . length ) ) != - 1 ) { buffer . write ( data , 0 , len ) ; } buffer . flush ( ) ; ...
Converts inputstream to bytearray
159,249
public String encodeStringAsBase64 ( String value ) throws ConversionException { try { return encodeStringAsBase64Internal ( value ) ; } catch ( IOException e ) { return null ; } }
Encode a String in base64 . The content of the string is first encoded as UTF - 8 bytes the bytes are then base64 encoded . The resulting base64 value is returned as a String .
159,250
private void writeSimpleString ( OutputStream out , CharSequence value ) throws IOException { out . write ( '"' ) ; for ( int i = 0 ; i < value . length ( ) ; i ++ ) { out . write ( value . charAt ( i ) ) ; } out . write ( '"' ) ; }
The value can t be null .
159,251
public String getTemporaryQueueNamePrefix ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getTemporaryQueueNamePrefix" ) ; String prefix = jcaConnectionFactory . getTemporaryQueueNamePrefix ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryE...
Get the temp queue name prefix
159,252
public String getPassword ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getPassword" ) ; String password = jcaConnectionFactory . getPassword ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getPa...
This method is not added in the interface JmsManagedConnectionFactory since it s for internal use only .
159,253
public String getConnectionProximity ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getConnectionProximity" ) ; String connectionProximity = jcaConnectionFactory . getConnectionProximity ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEna...
Gets the connection proximity
159,254
public String getProviderEndpoints ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getProviderEndpoints" ) ; String providerEndpoints = jcaConnectionFactory . getProviderEndpoints ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( )...
Gets the provider endpoints 181802 . 2
159,255
public String getTargetTransportChain ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getTargetTransportChain" ) ; String targetTransportChain = jcaConnectionFactory . getTargetTransportChain ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntr...
Gets the remote protocol
159,256
public String getTarget ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getTarget" ) ; String remoteTargetGroup = jcaConnectionFactory . getTarget ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "ge...
Gets the target
159,257
public String getTargetType ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getTargetType" ) ; String remoteTargetType = jcaConnectionFactory . getTargetType ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this...
Gets the target type
159,258
@ SuppressWarnings ( "rawtypes" ) public Class getException ( ) { try { return Class . forName ( errorParam , true , Thread . currentThread ( ) . getContextClassLoader ( ) ) . newInstance ( ) . getClass ( ) ; } catch ( Exception e ) { return null ; } }
Use of the WAR class loader is correct .
159,259
@ SuppressWarnings ( "rawtypes" ) public Class getException ( ClassLoader warClassLoader ) { try { return Class . forName ( errorParam , true , warClassLoader ) ; } catch ( Exception e ) { return null ; } }
PK52168 - STARTS
159,260
private byte [ ] readIndefiniteLengthFully ( ) throws IOException { ByteArrayOutputStream bOut = new ByteArrayOutputStream ( ) ; int b , b1 ; b1 = read ( ) ; while ( ( b = read ( ) ) >= 0 ) { if ( b1 == 0 && b == 0 ) { break ; } bOut . write ( b1 ) ; b1 = b ; } return bOut . toByteArray ( ) ; }
read a string of bytes representing an indefinite length object .
159,261
public static String [ ] generateUniqueIdCache ( String prefix , int count ) { String [ ] cache = new String [ count ] ; SectionUniqueIdCounter counter = new SectionUniqueIdCounter ( prefix ) ; for ( int i = 0 ; i < count ; i ++ ) { cache [ i ] = counter . generateUniqueId ( ) ; } return cache ; }
Creates an array of the generated unique ids for an specified prefix than can be used later to prevent calculate the same String over and over .
159,262
public Set < HeaderField > getHeaders ( ) { HashSet < HeaderField > headerFields = new HashSet < HeaderField > ( ) ; if ( _headers . size ( ) > 0 ) { Iterator < String > headerNames = _headers . keySet ( ) . iterator ( ) ; while ( headerNames . hasNext ( ) ) { Iterator < HttpHeaderField > headers = _headers . get ( hea...
Methods required by com . ibm . wsspi . http . ee8 . HttpPushBuilder
159,263
private void reset ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "reset()" , "Clearing the path and removing conditional headers" ) ; } _path = null ; _pathURI = null ; _queryString = null ; _pathQueryString = null ; removeHeader ( HDR_IF_MATCH ) ; removeHeader ( H...
Reset the state of this PushBuilder before next push
159,264
protected synchronized void installJAASConfigurationFromJAASConfigFile ( ) { JAASLoginConfig jaasLoginConfig = jaasLoginConfigRef . getService ( ) ; if ( jaasLoginConfig != null ) { jaasConfigurationEntriesFromJaasConfig = jaasLoginConfig . getEntries ( ) ; if ( jaasConfigurationEntriesFromJaasConfig != null ) { if ( j...
This method optional install the JAAS configuration that specified in the jaas . conf file
159,265
@ SuppressWarnings ( "unchecked" ) public static List < ProductRequirementInformation > createFromAppliesTo ( String appliesTo ) { if ( appliesTo == null || appliesTo . isEmpty ( ) ) { throw new InvalidParameterException ( "Applies to must be set to a valid value but is " + appliesTo ) ; } List < ProductRequirementInfo...
Parse an appliesTo string to produce a list of product requirements
159,266
Neighbour [ ] getMembers ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getMembers" ) ; SibTr . exit ( tc , "getMembers" ) ; } return iNeighbours ; }
Method that returns all the Neighbours for this Bus
159,267
Hashtable getLocalSubscriptions ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getLocalSubscriptions" ) ; SibTr . exit ( tc , "getLocalSubscriptions" , iLocalSubscriptions ) ; } return ( Hashtable ) iLocalSubscriptions . clone ( ) ; }
Gets all the local subscriptions that have been sent to this Bus .
159,268
Hashtable getRemoteSubscriptions ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getRemoteSubscriptions" ) ; SibTr . exit ( tc , "getRemoteSubscriptions" , iRemoteSubscriptions ) ; } return ( Hashtable ) iRemoteSubscriptions . clone ( ) ; }
Gets all the remote subscriptions that have been sent to this Bus .
159,269
SubscriptionMessageHandler addRemoteSubscription ( SIBUuid12 topicSpace , String topic , SubscriptionMessageHandler messageHandler , boolean sendProxy ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addRemoteSubscription" , new Object [ ] { topicSpace , topic , messa...
Adds a remote subscription to this ME .
159,270
SubscriptionMessageHandler removeRemoteSubscription ( SIBUuid12 topicSpace , String topic , SubscriptionMessageHandler messageHandler , boolean sendProxy ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeRemoteSubscription" , new Object [ ] { topicSpace , topic ,...
Called when an unsubscribe needs to be propagated to the group . Decrements the reference count on the subscription for any subscriptions registered remotely .
159,271
private SubscriptionMessageHandler removeSubscription ( SIBUuid12 topicSpace , String topic , SubscriptionMessageHandler messageHandler , Hashtable subscriptionsTable , boolean sendProxy ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeSubscription" , new Object...
Called when an unsubscribe needs to be propagated to the group . Decrements the reference count on the subscription .
159,272
protected void sendToNeighbours ( SubscriptionMessage msg , Transaction transaction , boolean startup ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sendToNeighbours" , new Object [ ] { msg , transaction , new Boolean ( startup ) } ) ; for...
Sends the messages to all the Neighbours in this Bus .
159,273
void addNeighbour ( Neighbour neighbour ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addNeighbour" , neighbour ) ; final Neighbour [ ] tmp = new Neighbour [ iNeighbours . length + 1 ] ; System . arraycopy ( iNeighbours , 0 , tmp , 0 , iNeighbours . length ) ; tmp ...
Adds a reference of Neighbour to this Bus group
159,274
void removeNeighbour ( Neighbour neighbour ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeNeighbour" , neighbour ) ; Neighbour [ ] tmp = iNeighbours ; for ( int i = 0 ; i < iNeighbours . length ; ++ i ) if ( iNeighbours [ i ] . equals ( neighbour ) ) { tmp = n...
Removes a Neighbour reference from this Bus group
159,275
private SubscriptionMessageHandler doProxySubscribeOp ( int op , MESubscription subscription , SubscriptionMessageHandler messageHandler , Hashtable subscriptionsTable , boolean sendProxy ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "doProxySubscribeOp" , new Objec...
Performs a proxy subscription operation for the given subscription .
159,276
protected SubscriptionMessage generateResetSubscriptionMessage ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "generateResetSubscriptionMessage" ) ; final SubscriptionMessageHandler messageHandler = iProxyHandler . getMessageHandler ( ) ; messageHandler . resetRese...
Generates the reset subscription message that should be sent to a member or members of this Bus .
159,277
protected SubscriptionMessage generateReplySubscriptionMessage ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "generateReplySubscriptionMessage" ) ; final SubscriptionMessageHandler messageHandler = iProxyHandler . getMessageHandler ( ) ; messageHandler . resetRepl...
Generates the reply subscription message that should be sent to a the neighbor on the Bus who sent the request .
159,278
private final void addToMessage ( SubscriptionMessageHandler messageHandler , Hashtable subscriptions ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addToMessage" , new Object [ ] { messageHandler , subscriptions } ) ; Enumeration enu = subscriptions . elements ( ) ...
Adds the subscriptions to the subscription message
159,279
void resetListFailed ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "resetListFailed" ) ; for ( int i = 0 ; i < iNeighbours . length ; i ++ ) { iNeighbours [ i ] . resetListFailed ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Si...
If at startup the reset list failed then we need to try and send it again . Each Neighbour needs to be told that the send failed so that it can retry .
159,280
protected MultiThreadedWorker getMultiThreadedWorker ( SelectionKey key , long threadIdfWQM ) { MultiThreadedWorker worker = null ; synchronized ( multiThreadedObjectPool ) { worker = ( MultiThreadedWorker ) multiThreadedObjectPool . get ( ) ; } if ( worker == null ) { worker = new MultiThreadedWorker ( this ) ; } work...
Retrieve a MultiThreadedWorker object from the object pool .
159,281
String resolveSymbolicString ( String symbolicPath ) { if ( symbolicPath == null ) throw new NullPointerException ( "Path must be non-null" ) ; return resolveStringSymbols ( symbolicPath , symbolicPath , true , 0 , true ) ; }
Resolves the given string evaluating all symbols and path - normalizes the value .
159,282
String resolveRawSymbolicString ( String string ) { if ( string == null ) throw new NullPointerException ( "String must be non-null" ) ; return resolveStringSymbols ( string , string , true , 0 , false ) ; }
Resolves the given string evaluating all symbols but does NOT path - normalize the value .
159,283
protected boolean addJwtCookies ( String cookieByteString , HttpServletRequest req , HttpServletResponse resp ) { String baseName = getJwtCookieName ( ) ; if ( baseName == null ) { return false ; } if ( ( ! req . isSecure ( ) ) && getJwtCookieSecure ( ) ) { Tr . warning ( tc , "JWT_COOKIE_SECURITY_MISMATCH" , new Objec...
Add the cookie or cookies as needed depending on size of token . Return true if any cookies were added
159,284
public void removeSSOCookieFromResponse ( HttpServletResponse resp ) { if ( resp instanceof com . ibm . wsspi . webcontainer . servlet . IExtendedResponse ) { ( ( com . ibm . wsspi . webcontainer . servlet . IExtendedResponse ) resp ) . removeCookie ( getSSOCookiename ( ) ) ; removeJwtSSOCookies ( ( com . ibm . wsspi ....
Remove a cookie from the response
159,285
protected synchronized void updateCookieCache ( ByteArray cookieBytes , String cookieByteString ) { if ( cookieByteStringCache . size ( ) > MAX_COOKIE_STRING_ENTRIES ) cookieByteStringCache . clear ( ) ; if ( cookieByteString != null ) cookieByteStringCache . put ( cookieBytes , cookieByteString ) ; }
Perform some cookie cache maintenance . If the cookie cache has grown too large clear it . Otherwise store the cookieByteString into the cache based on the cookieBytes .
159,286
protected boolean isJwtCookie ( String baseName , String cookieName ) { if ( baseName . equalsIgnoreCase ( cookieName ) ) return true ; if ( ! ( cookieName . startsWith ( baseName ) ) ) { return false ; } if ( cookieName . length ( ) != baseName . length ( ) + 2 ) { return false ; } String lastTwoChars = cookieName . s...
see if cookiename is a jwtsso cookie based on the name .
159,287
protected String resolveCookieName ( Cookie [ ] cookies ) { boolean foundCookie = false ; String ssoCookieName = this . getSSOCookiename ( ) ; if ( cookies != null ) { for ( int i = 0 ; i < cookies . length ; i ++ ) { if ( cookies [ i ] . getName ( ) . equalsIgnoreCase ( ssoCookieName ) ) { foundCookie = true ; break ;...
1 ) If we found the cookie associate with the cookie name we will use the cookie name 2 ) If we can not find the cookie associate with the cookie name we will use the default cookie name LTPAToken2 if isUseOnlyCustomCookieName is false
159,288
public String getJwtSsoTokenFromCookies ( HttpServletRequest req , String baseName ) { StringBuffer tokenStr = new StringBuffer ( ) ; String cookieName = baseName ; for ( int i = 1 ; i <= 99 ; i ++ ) { if ( i > 1 ) { cookieName = baseName + ( i < 10 ? "0" : "" ) + i ; } String cookieValue = getCookieValue ( req , cooki...
The token can be split across multiple cookies if it is over 3900 chars . Look for subsequent cookies and concatenate them in that case . The counterpart for this method is SSOCookieHelperImpl . addJwtSsoCookiesToResponse .
159,289
public static DERGeneralizedTime getInstance ( Object obj ) { if ( obj == null || obj instanceof DERGeneralizedTime ) { return ( DERGeneralizedTime ) obj ; } if ( obj instanceof ASN1OctetString ) { return new DERGeneralizedTime ( ( ( ASN1OctetString ) obj ) . getOctets ( ) ) ; } throw new IllegalArgumentException ( "il...
return a generalized time from the passed in object
159,290
public final void start ( ) throws XAException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "start" , new Object [ ] { _resource , printState ( _state ) } ) ; if ( tcSummary . isDebugEnabled ( ) ) Tr . debug ( tcSummary , "xa_start" , this ) ; int rc = - 1 ; try { int flags ; switch ( _state ) { case NOT_ASSOCIAT...
Associate the underlying XAResource with a transaction .
159,291
public final void end ( int flag ) throws XAException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "end" , new Object [ ] { _resource , Util . printFlag ( flag ) , printState ( _state ) } ) ; if ( tcSummary . isDebugEnabled ( ) ) Tr . debug ( tcSummary , "xa_end" , new Object [ ] { this , "flags = " + Util . prin...
Terminate the association of the XAResource with this transaction .
159,292
protected void activate ( ComponentContext context , Map < String , Object > properties ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "activate" , new Object [ ] { context , properties } ) ; } try { service = new JsMainAdminServiceImpl ( ) ; configAdm...
This method is call by the declarative service when the feature is activated
159,293
protected void modified ( ComponentContext context , Map < String , Object > properties ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "modified" , new Object [ ] { context , properties } ) ; } try { if ( service . getMeState ( ) . equals ( ME_STATE . ...
This method is call by the declarative service when there is configuration change
159,294
@ Reference ( name = KEY_MESSAGE_STORE , service = MessageStore . class ) protected void setMessageStore ( ServiceReference < MessageStore > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . entry ( tc , "setMessageStore" , ref ) ; messageStoreRef . setReference ( ref ) ; if ( T...
Declarative Services method for setting the MessageStore service reference .
159,295
protected void unsetMessageStore ( ServiceReference < MessageStore > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . entry ( tc , "unsetMessageStore" , ref ) ; messageStoreRef . unsetReference ( ref ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) )...
Declarative Services method for unsetting the MessageStore service reference .
159,296
@ Reference ( name = KEY_DESTINATION_ADDRESS_FACTORY , service = SIDestinationAddressFactory . class ) protected void setDestinationAddressFactory ( ServiceReference < SIDestinationAddressFactory > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . entry ( tc , "setDestinationAdd...
Declarative Services method for setting the DestinationAddressFactory service reference .
159,297
protected void unsetDestinationAddressFactory ( ServiceReference < SIDestinationAddressFactory > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . entry ( tc , "unsetDestinationAddressFactory" , ref ) ; destinationAddressFactoryRef . setReference ( ref ) ; if ( TraceComponent . ...
Declarative Services method for unsetting the DestinationAddressFactory service reference .
159,298
@ Reference ( name = KEY_JS_ADMIN_SERVICE , service = JsAdminService . class ) protected void setJsAdminService ( ServiceReference < JsAdminService > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . entry ( tc , "setJsAdminService" , ref ) ; jsAdminServiceref . setReference ( r...
Declarative Services method for setting the JsAdminService service reference .
159,299
protected void unsetJsAdminService ( ServiceReference < JsAdminService > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . entry ( tc , "unsetJsAdminService" , ref ) ; jsAdminServiceref . setReference ( ref ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled...
Declarative Services method for unsetting the JsAdminService service reference .