idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
160,200
protected void processLAandLI ( File archive , RepositoryResourceWritable resource , Manifest manifest ) throws RepositoryException , IOException { Attributes attribs = manifest . getMainAttributes ( ) ; String LAHeader = attribs . getValue ( LA_HEADER_PRODUCT ) ; String LIHeader = attribs . getValue ( LI_HEADER_PRODUC...
Locate and process license agreement and information files within a jar
160,201
public List < String > getRequiresFeature ( ArtifactMetadata amd ) { List < String > requiresFeature = new ArrayList < String > ( ) ; String requiresFeatureProp = amd . getProperty ( PROP_REQUIRE_FEATURE ) ; if ( requiresFeatureProp == null ) { return null ; } if ( requiresFeatureProp . equals ( "" ) ) { return require...
Take the require . feature comma separated list and return a List of the entries
160,202
protected void processIcons ( ArtifactMetadata amd , RepositoryResourceWritable res ) throws RepositoryException { String current = "" ; String sizeString = "" ; String iconName = "" ; String iconNames = amd . getIcons ( ) ; if ( iconNames != null ) { iconNames . replaceAll ( "\\s" , "" ) ; StringTokenizer s = new Stri...
Process icons from the properties file
160,203
public void reconstitute ( MessageProcessor processor , HashMap durableSubscriptionsTable , int startMode ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "reconstitute" , new Object [ ] { processor , durableSubscriptionsTable , Integer . val...
Complete recovery of a MQLinkLocalizationItemStream retrieved from the MessageStore .
160,204
public void registerLink ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "registerLink" ) ; try { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Register MQLink: " + getUuid ( ) + ", with m...
Registers the link with WLM
160,205
public void deregisterLink ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deregisterLink" ) ; deregisterDestination ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Deregister MQLink: " + getUuid ( ) + ", with ...
De - registers the link from WLM
160,206
public void stop ( int mode ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "stop" ) ; super . stop ( mode ) ; try { if ( _mqLinkObject != null ) _mqLinkObject . stop ( ) ; } catch ( SIResourceException e ) { SibTr . exception ( tc , e ) ; } catch ( SIException e ) { ...
This stop method overrides the stop method in BaseDestinationHandler and is driven when the ME is stopped . As well as performing the normal stop processing for the MQLink object it also ensures that the uuid of the the MQLink is undefined from the set managed by the TRM . Otherwise there is the potential to add the uu...
160,207
public void announceMPStarted ( int startMode , JsMessagingEngine me ) throws SIResourceException , SIException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "announceMPStarted" , new Object [ ] { startMode , me } ) ; if ( _mqLinkObject != null ) _mqLinkObject . mpSta...
Alert the MQLink and PSB components that MP has now started .
160,208
public void destroy ( ) throws SIResourceException , SIException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "destroy" ) ; if ( _mqLinkObject != null ) _mqLinkObject . destroy ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . e...
Alert the MQLink and PSB components that destroy has been driven .
160,209
void recycle ( ) { flushed = false ; closed = false ; out = null ; nextChar = 0 ; converterBuffer . clear ( ) ; response = null ; }
Package - level access
160,210
public final void clear ( ) throws IOException { if ( ( bufferSize == 0 ) && ( out != null ) ) throw new IllegalStateException ( "jsp.error.ise_on_clear" ) ; if ( flushed ) throw new IOException ( "jsp.error.attempt_to_clear_flushed_buffer" ) ; if ( closed ) { throw new IOException ( "Stream closed" ) ; } nextChar = 0 ...
Discard the output buffer .
160,211
public static File [ ] getUserExtensionVersionFiles ( File installDir ) { File [ ] versionFiles = null ; String userDirLoc = System . getenv ( BootstrapConstants . ENV_WLP_USER_DIR ) ; File userDir = ( userDirLoc != null ) ? new File ( userDirLoc ) : ( ( installDir != null ) ? new File ( installDir , "usr" ) : null ) ;...
Retrieves the product extension jar bundles located in the installation s usr directory .
160,212
private String getUserFromUniqueID ( String id ) { if ( id == null ) { return "" ; } id = id . trim ( ) ; int realmDelimiterIndex = id . indexOf ( "/" ) ; if ( realmDelimiterIndex < 0 ) { return "" ; } else { return id . substring ( realmDelimiterIndex + 1 ) ; } }
New method added as an alternative of getUserFromUniqueId method of WSSecurityPropagationHelper
160,213
private void checkNotClosed ( ) throws SIConnectionUnavailableException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkNotClosed" ) ; synchronized ( this ) { if ( _closed ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ...
Check if this connection has been closed . If it has a SIObjectClosedException is thrown .
160,214
void removeBrowserSession ( BrowserSessionImpl browser ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeBrowserSession" , browser ) ; synchronized ( _browsers ) { _browsers . remove ( browser ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEna...
This method simply removes a Browser Session from our list . It is generally called by the Browser Session as it is closing down .
160,215
void removeConsumerSession ( ConsumerSessionImpl consumer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeConsumerSession" , consumer ) ; synchronized ( _consumers ) { _consumers . remove ( consumer ) ; } _messageProcessor . removeConsumer ( consumer ) ; if ( T...
This method simply removes a Consumer Session from our list . It is generally called by the Consumer Session as it is closing down .
160,216
void removeProducerSession ( ProducerSessionImpl producer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeProducerSession" ) ; synchronized ( _producers ) { _producers . remove ( producer ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnable...
This method simply removes a Producer Session from our list . It is generally called by the Producer Session as it is closing down .
160,217
private ProducerSession internalCreateProducerSession ( SIDestinationAddress destAddress , DestinationType destinationType , boolean system , SecurityContext secContext , boolean keepSecurityUserid , boolean fixedMessagePoint , boolean preferLocal , boolean clearPubSubFingerprints , String discriminator ) throws SIConn...
Method that creates the producer session .
160,218
private void checkTemporary ( DestinationHandler destination , boolean mqinterop ) throws SITemporaryDestinationNotFoundException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkTemporary" , new Object [ ] { destination , Boolean . valueOf ( mqinterop ) } ) ; if (...
Checks to see if the destination is temporary and the connection used to create the temp destination is the same as the one trying to access it .
160,219
private ConsumerSession internalCreateConsumerSession ( SIDestinationAddress destAddr , String alternateUser , DestinationType destinationType , SelectionCriteria criteria , Reliability reliability , boolean enableReadAhead , boolean nolocal , boolean forwardScanning , boolean system , Reliability unrecoverableReliabil...
Internal method for creating the consumer .
160,220
private SIBUuid8 checkDurableSubscriptionInformation ( String subscriptionName , String durableSubscriptionHome , SIDestinationAddress destinationAddress , boolean supportsMultipleConsumers , boolean nolocal , boolean delete , boolean createForDurSub ) throws SIIncorrectCallException , SIConnectionUnavailableException ...
Checks made for durable subscription support .
160,221
private SIBusMessage internalReceiveNoWait ( SITransaction tran , Reliability unrecoverableReliability , SIDestinationAddress destAddr , DestinationType destinationType , SelectionCriteria criteria , Reliability reliability , String alternateUser , boolean system ) throws SIConnectionDroppedException , SIConnectionUnav...
Internal implementation for receiving no wait
160,222
private BrowserSession createBrowserSession ( SIDestinationAddress destinationAddress , DestinationType destinationType , SelectionCriteria criteria , boolean system , String alternateUser , boolean gatherMessages ) throws SIConnectionUnavailableException , SIConnectionDroppedException , SIErrorException , SITemporaryD...
Creates the Browser session .
160,223
private static final boolean isDestinationPrefixValid ( String destinationPrefix ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isDestinationPrefixValid" , destinationPrefix ) ; boolean isValid = true ; if ( null != destinationPrefix ) { int len = destinationPrefix ...
Determines whether a destination prefix for a System destination is valid or not .
160,224
public ItemStream getMQLinkPubSubBridgeItemStream ( String mqLinkUuidStr ) throws SIException { MQLinkHandler mqLinkHandler = null ; ItemStream mqLinkPubSubBridgeItemStream = null ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getMQLinkPubSubBridgeItemStream" , mqLink...
Retrieves the MQLink s PubSubBridge ItemStream
160,225
void removeBifurcatedConsumerSession ( BifurcatedConsumerSessionImpl bifurcatedConsumer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && CoreSPIConnection . tc . isEntryEnabled ( ) ) SibTr . entry ( CoreSPIConnection . tc , "removeBifurcatedConsumerSession" , new Object [ ] { this , bifurcatedConsumer } ) ; synchro...
Remove a bifurcated consumer from the connection list .
160,226
private boolean checkConsumerDiscriminatorAccess ( DestinationHandler destination , String discriminator , SecurityContext secContext ) throws SIDiscriminatorSyntaxException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkConsumerDiscriminatorAccess" , new Object ...
Checks the authority of a consumer to consume from a discriminator
160,227
private void checkInquireAuthority ( DestinationHandler destination , String destinationName , String busName , SecurityContext secContext , boolean temporary ) throws SINotAuthorizedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkInquireAuthority" , new...
Checks the authority to inquire on a destination
160,228
private boolean isSIBServerSubject ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isSIBServerSubject" ) ; boolean ispriv = false ; if ( _subject != null ) ispriv = _messageProcessor . getAuthorisationUtils ( ) . isSIBServerSubject ( _subject ) ; if ( TraceComponen...
Returns true if the subject associated with the connection is the privileged SIBServerSubject .
160,229
public boolean isMulticastEnabled ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isMulticastEnabled" ) ; boolean enabled = _messageProcessor . isMulticastEnabled ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "...
Returns true if multicast is enabled
160,230
public MulticastProperties getMulticastProperties ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getMulticastProperties" ) ; MulticastProperties props = _messageProcessor . getMulticastProperties ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryE...
Returns the MulticastProperties for this messaging engine null if multicast is not enabled .
160,231
private void checkDestinationAccess ( DestinationHandler destination , String destinationName , String busName , SecurityContext secContext ) throws SINotAuthorizedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkDestinationAccess" , new Object [ ] { dest...
Checks the authority of a producer to produce to a destination
160,232
public MPSubscription getSubscription ( String subscriptionName ) throws SIDurableSubscriptionNotFoundException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getSubscription" , subscriptionName ) ; HashMap durableSubs = _destinationManager . getDurableSubscriptionsTa...
Retrieve the MPSubscription object that represents the named durable subscription
160,233
public void deregisterConsumerSetMonitor ( ConsumerSetChangeCallback callback ) throws SINotPossibleInCurrentConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deregisterConsumerSetMonitor" , new Object [ ] { callback } ) ; _messageProcessor . getMe...
Deregisters a previously registered callback .
160,234
public Map getConnectionProperties ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getConnectionProperties" ) ; SibTr . exit ( tc , "getConnectionProperties" , _connectionProperties ) ; } return _connectionProperties ; }
Retrieve the properties associated with this connection .
160,235
public void setConnectionProperties ( Map connectionProperties ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getConnectionProperties" , connectionProperties ) ; SibTr . exit ( tc , "getConnectionProperties" ) ; } _connectionProperties = connectionProperties ; }
Set the properties associated with this connection . Supports Unittest environment .
160,236
private void stopChain ( String name , Event event ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Stop chain event; chain=" + name ) ; } ChannelFramework cf = ChannelFrameworkFactory . getChannelFramework ( ) ; try { if ( cf . isChainRunning ( name ) ) { cf . stopCha...
Stop the explicit chain provided .
160,237
private static WebServiceRefPartialInfo buildPartialInfoFromWebServiceClient ( Class < ? > serviceInterfaceClass ) { WebServiceClient webServiceClient = serviceInterfaceClass . getAnnotation ( WebServiceClient . class ) ; if ( webServiceClient == null ) { return null ; } String className = serviceInterfaceClass . getNa...
This method will build a ServiceRefPartialInfo object from a class with an
160,238
public Map < ConfigID , List < T > > collectElementsById ( Map < ConfigID , List < T > > map , String defaultId , String pid ) { if ( map == null ) { map = new HashMap < ConfigID , List < T > > ( ) ; } int index = 0 ; for ( T configElement : configElements ) { String id = configElement . getId ( ) ; if ( id == null ) {...
Collects elements into Lists based on their ID . If an ID is not specified the defaultId will be used . If the defaultId is null an id will be generated .
160,239
public static long readLong ( byte b [ ] , int offset ) { long retValue ; retValue = ( ( long ) b [ offset ++ ] ) << 56 ; retValue |= ( ( long ) b [ offset ++ ] & 0xff ) << 48 ; retValue |= ( ( long ) b [ offset ++ ] & 0xff ) << 40 ; retValue |= ( ( long ) b [ offset ++ ] & 0xff ) << 32 ; retValue |= ( ( long ) b [ off...
Unserializes a long from a byte array at a specific offset in big - endian order
160,240
public static void writeLong ( byte b [ ] , int offset , long value ) { b [ offset ++ ] = ( byte ) ( value >>> 56 ) ; b [ offset ++ ] = ( byte ) ( value >>> 48 ) ; b [ offset ++ ] = ( byte ) ( value >>> 40 ) ; b [ offset ++ ] = ( byte ) ( value >>> 32 ) ; b [ offset ++ ] = ( byte ) ( value >>> 24 ) ; b [ offset ++ ] = ...
Serializes a long into a byte array at a specific offset in big - endian order
160,241
public static int readInt ( byte b [ ] , int offset ) { int retValue ; retValue = ( ( int ) b [ offset ++ ] ) << 24 ; retValue |= ( ( int ) b [ offset ++ ] & 0xff ) << 16 ; retValue |= ( ( int ) b [ offset ++ ] & 0xff ) << 8 ; retValue |= ( int ) b [ offset ] & 0xff ; return retValue ; }
Unserializes an int from a byte array at a specific offset in big - endian order
160,242
public static void writeInt ( byte [ ] b , int offset , int value ) { b [ offset ++ ] = ( byte ) ( value >>> 24 ) ; b [ offset ++ ] = ( byte ) ( value >>> 16 ) ; b [ offset ++ ] = ( byte ) ( value >>> 8 ) ; b [ offset ] = ( byte ) value ; }
Serializes an int into a byte array at a specific offset in big - endian order
160,243
public static short readShort ( byte b [ ] , int offset ) { int retValue ; retValue = b [ offset ++ ] << 8 ; retValue |= b [ offset ] & 0xff ; return ( short ) retValue ; }
Unserializes a short from a byte array at a specific offset in big - endian order
160,244
public static void writeShort ( byte b [ ] , int offset , short value ) { b [ offset ++ ] = ( byte ) ( value >>> 8 ) ; b [ offset ] = ( byte ) value ; }
Serializes a short into a byte array at a specific offset in big - endian order
160,245
public static void establishSSLContext ( HttpClient client , int port , LibertyServer server ) { establishSSLContext ( client , port , server , null , null , null , null , "TLSv1.2" ) ; }
Adds an SSL context to the HttpClient . No trust or client certificate is established and a trust - all policy is assumed .
160,246
public final void fireEvent ( EventObject evt , EventListenerV visitor ) { EventListener [ ] list = getListenerArray ( ) ; for ( int i = 0 ; i < list . length ; i ++ ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . logp ( Level . FINE , CLASS_N...
Fire the event to all listeners by allowing the visitor to visit each listener . The visitor is responsible for implementing the actual firing of the event to each listener .
160,247
public final synchronized void addListener ( EventListener l ) { if ( l == null ) { throw new IllegalArgumentException ( "Listener " + l + " is null" ) ; } if ( listeners == EMPTY_LISTENERS ) { listeners = new EventListener [ 1 ] ; listeners [ 0 ] = l ; } else { int i = listeners . length ; EventListener [ ] tmp = new ...
Add the listener as a listener to the list .
160,248
public final synchronized void removeListener ( EventListener l ) { if ( l == null ) { throw new IllegalArgumentException ( "Listener " + l + " is null" ) ; } int index = - 1 ; for ( int i = listeners . length - 1 ; i >= 0 ; i -- ) { if ( listeners [ i ] . equals ( l ) == true ) { index = i ; break ; } } if ( index != ...
Remove the listener .
160,249
private ClassLoader getClassLoaderForInterfaces ( final ClassLoader loader , final Class < ? > [ ] interfaces ) { if ( canSeeAllInterfaces ( loader , interfaces ) ) { LOG . log ( Level . FINE , "current classloader " + loader + " can see all interface" ) ; return loader ; } String sortedNameFromInterfaceArray = getSort...
Return a classloader that can see all the given interfaces If the given loader can see all interfaces then it is used . If not then a combined classloader of all interface classloaders is returned .
160,250
private Application getMyfacesApplicationInstance ( ) { FacesContext facesContext = FacesContext . getCurrentInstance ( ) ; if ( facesContext != null ) { ExternalContext externalContext = facesContext . getExternalContext ( ) ; if ( externalContext != null ) { return ( Application ) externalContext . getApplicationMap ...
Retrieve the current Myfaces Application Instance lookup on the application map . All methods introduced on jsf 1 . 2 for Application interface should thrown by default UnsupportedOperationException but the ri scan and find the original Application impl and redirect the call to that method instead throwing it allowing ...
160,251
protected ClassLoader buildClassLoader ( final List < URL > urlList , String verifyJarProperty ) { if ( libertyBoot ) { return AccessController . doPrivileged ( new PrivilegedAction < ClassLoader > ( ) { public ClassLoader run ( ) { return getClass ( ) . getClassLoader ( ) ; } } ) ; } final boolean verifyJar ; if ( Sys...
Build the nested classloader containing the OSGi framework and the log provider .
160,252
public static void enableJava2SecurityIfSet ( BootstrapConfig bootProps , List < URL > urlList ) { if ( bootProps . get ( BootstrapConstants . JAVA_2_SECURITY_PROPERTY ) != null ) { NameBasedLocalBundleRepository repo = new NameBasedLocalBundleRepository ( bootProps . getInstallRoot ( ) ) ; urlList . add ( getJarFileFr...
Set Java 2 Security if enabled
160,253
protected static String getProductInfoDisplayName ( ) { String result = null ; try { Map < String , ProductInfo > products = ProductInfo . getAllProductInfo ( ) ; StringBuilder builder = new StringBuilder ( ) ; for ( ProductInfo productInfo : products . values ( ) ) { ProductInfo replaced = productInfo . getReplacedBy ...
Return a display name for the currently running server .
160,254
protected Instrumentation getInstrumentation ( ) { ClassLoader cl = ClassLoader . getSystemClassLoader ( ) ; Instrumentation i = findInstrumentation ( cl , "com.ibm.ws.kernel.instrument.BootstrapAgent" ) ; if ( i == null ) i = findInstrumentation ( cl , "wlp.lib.extract.agent.BootstrapAgent" ) ; return i ; }
Fetch the BootstrapAgent instrumentation instance from the BootstrapAgent in the system classloader .
160,255
public JspConfiguration createClonedJspConfiguration ( ) { return new JspConfiguration ( configManager , this . getServletVersion ( ) , this . jspVersion , this . isXml , this . isXmlSpecified , this . elIgnored , this . scriptingInvalid ( ) , this . isTrimDirectiveWhitespaces ( ) , this . isDeferredSyntaxAllowedAsLite...
This method is used for creating a configuration for a tag file . The tag file may want to override some properties if it s jsp version in the tld is different than the server version
160,256
public ExpressionFactory getExpressionFactory ( ) { synchronized ( this ) { if ( expressionFactory == null ) { expressionFactory = ExpressionFactory . newInstance ( ) ; } } if ( configManager . isJCDIEnabled ( ) ) { if ( jcdiWrappedExpressionFactory == null ) { ELFactoryWrapperForCDI wrapperExpressionFactory = JSPExten...
LIDB4147 - 9 Begin
160,257
protected ClassInfoImpl getDelayableClassInfo ( Type type ) { String typeClassName = type . getClassName ( ) ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , MessageFormat . format ( "[ {0} ] ENTER [ {1} ] [ {2} ]" , new Object [ ] { getHashText ( ) , type , typeClassName } ) ) ; } ClassInfoImpl classInfo ; String ...
For array types the previous implementation used the element name .
160,258
public ArrayClassInfo getArrayClassInfo ( String typeClassName , Type arrayType ) { ClassInfoImpl elementClassInfo = getDelayableClassInfo ( arrayType . getElementType ( ) ) ; return new ArrayClassInfo ( typeClassName , elementClassInfo ) ; }
Note that this will recurse as long as the element type is still an array type .
160,259
protected boolean addClassInfo ( NonDelayedClassInfo classInfo ) { boolean didAdd ; if ( classInfo . isJavaClass ( ) ) { didAdd = basicPutJavaClassInfo ( classInfo ) ; } else if ( classInfo . isAnnotationPresent ( ) || classInfo . isFieldAnnotationPresent ( ) || classInfo . isMethodAnnotationPresent ( ) ) { didAdd = ba...
Do update the LRU state .
160,260
protected void addAsFirst ( NonDelayedClassInfo classInfo ) { String methodName = "addAsFirst" ; boolean doLog = tc . isDebugEnabled ( ) ; String useHashText = ( doLog ? getHashText ( ) : null ) ; String useClassHashText = ( doLog ? classInfo . getHashText ( ) : null ) ; if ( doLog ) { logLinks ( methodName , classInfo...
put us over the maximum size trim off the last element .
160,261
public void makeFirst ( NonDelayedClassInfo classInfo ) { String methodName = "makeFirst" ; boolean doLog = tc . isDebugEnabled ( ) ; String useHashText = ( doLog ? getHashText ( ) : null ) ; String useClassHashText = ( doLog ? classInfo . getHashText ( ) : null ) ; if ( doLog ) { logLinks ( methodName , classInfo ) ; ...
The class info is last or the class info is somewhere in the middle .
160,262
@ FFDCIgnore ( MalformedURLException . class ) public URL getResource ( ) { String useRelPath = getRelativePath ( ) ; if ( ( zipEntryData == null ) || zipEntryData . isDirectory ( ) ) { useRelPath += "/" ; } URI entryUri = rootContainer . createEntryUri ( useRelPath ) ; if ( entryUri == null ) { return null ; } try { r...
Answer the URL of this entry .
160,263
public InputStream getInputStream ( ) throws IOException { if ( ( zipEntryData == null ) || zipEntryData . isDirectory ( ) ) { return null ; } final ZipFileHandle zipFileHandle = rootContainer . getZipFileHandle ( ) ; ZipFile zipFile = zipFileHandle . open ( ) ; final InputStream baseInputStream ; try { baseInputStream...
Obtain an input stream for the entry .
160,264
public ArtifactContainer getEnclosingContainer ( ) { if ( enclosingContainer == null ) { synchronized ( this ) { if ( enclosingContainer == null ) { String a_enclosingPath = PathUtils . getParent ( a_path ) ; int parentLen = a_enclosingPath . length ( ) ; if ( parentLen == 1 ) { enclosingContainer = rootContainer ; } e...
Answer the enclosing container of this entry .
160,265
public char normalize ( char currentChar ) { if ( NORMALIZE_UPPER == getNormalization ( ) ) { return toUpper ( currentChar ) ; } if ( NORMALIZE_LOWER == getNormalization ( ) ) { return toLower ( currentChar ) ; } return currentChar ; }
Take the input character and normalize based on this normalizer instance .
160,266
static public char normalize ( char input , int format ) { if ( NORMALIZE_LOWER == format ) { return toLower ( input ) ; } if ( NORMALIZE_UPPER == format ) { return toUpper ( input ) ; } return input ; }
Take the input character and normalize based on the input format .
160,267
public void init ( IFilterConfig filterConfig ) throws ServletException { try { _filterState = FILTER_STATE_INITIALIZING ; this . _filterConfig = filterConfig ; if ( _eventSource != null && _eventSource . hasFilterListeners ( ) ) { _eventSource . onFilterStartInit ( getFilterEvent ( ) ) ; _filterInstance . init ( filte...
Initializes the filter wrapper and the underlying filter instance
160,268
public void destroy ( ) throws ServletException { try { _filterState = FILTER_STATE_DESTROYING ; for ( int i = 0 ; ( nServicing . get ( ) > 0 ) && i < 60 ; i ++ ) { try { if ( i == 0 ) { logger . logp ( Level . INFO , CLASS_NAME , "destroy" , "waiting.to.destroy.filter.[{0}]" , _filterName ) ; } Thread . sleep ( 1000 )...
Destroys the filter wrapper and the underlying filter instance
160,269
protected synchronized void activate ( ComponentContext cc ) { pipelineRef . activate ( cc ) ; securityServiceRef . activate ( cc ) ; insertJMXSecurityFilter ( ) ; }
Insert the JMX security filter upon activation . This will only happen if we have both the MBeanServerPipeline and the SecurityService .
160,270
protected synchronized void deactivate ( ComponentContext cc ) { removeJMXSecurityFilter ( ) ; pipelineRef . deactivate ( cc ) ; securityServiceRef . deactivate ( cc ) ; }
Remove the JMX security filter upon deactivation .
160,271
private void throwAuthzException ( ) throws SecurityException { SubjectManager subjectManager = new SubjectManager ( ) ; String name = "UNAUTHENTICATED" ; if ( subjectManager . getInvocationSubject ( ) != null ) { name = subjectManager . getInvocationSubject ( ) . getPrincipals ( ) . iterator ( ) . next ( ) . getName (...
Throwing a SecurityException as not all of the methods that need protection throw an MBeanException . We can change this if we need to .
160,272
protected void setupNotificationArea ( ) throws Throwable { final String sourceMethod = "setupNotificationArea" ; URL notificationsURL = null ; HttpsURLConnection connection = null ; try { notificationsURL = serverConnection . getNotificationsURL ( ) ; if ( logger . isLoggable ( Level . FINEST ) ) { logger . logp ( Lev...
we want to avoid cycles .
160,273
private void sendClosingSignal ( ) { URL clientURL = null ; HttpsURLConnection connection = null ; try { if ( serverConnection . serverVersion >= 4 ) { clientURL = getNotificationClientURL ( ) ; } else { clientURL = getInboxURL ( ) ; } if ( logger . isLoggable ( Level . FINEST ) ) { logger . logp ( Level . FINEST , log...
We don t throw any errors because the connector is about to be closed .
160,274
private static Type getAsynchronizedGenericType ( Object targetObject ) { if ( targetObject instanceof java . util . Collection ) { Class < ? extends java . util . Collection > rawType = ( Class < ? extends Collection > ) targetObject . getClass ( ) ; Class < ? > actualType = Object . class ; if ( ( ( java . util . Col...
Hack to generate a type class for collection object .
160,275
public synchronized FailureScope currentFailureScope ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "currentFailureScope" , this ) ; if ( _currentFailureScope == null ) { _currentFailureScope = new FileFailureScope ( ) ; } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "currentFailureScope" , _currentFailureSc...
Invoked by a client service to determine the current FailureScope . This is defined as a FailureScope that identifies the current point of execution . In practice this means the current server on distributed or server region on 390 .
160,276
public void directInitialization ( FailureScope failureScope ) throws RecoveryFailedException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "directInitialization" , new Object [ ] { failureScope , this } ) ; final FailureScope currentFailureScope = Configuration . localFailureScope ( ) ; synchronized ( _registered...
Internal method to initiate recovery processing of the given FailureScope . All registered RecoveryAgent objects will be directed to process the FailureScope in sequence .
160,277
public void directTermination ( FailureScope failureScope ) throws TerminationFailedException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "directTermination" , new Object [ ] { failureScope , this } ) ; Tr . info ( tc , "CWRLS0014_HALT_PEER_RECOVERY" , failureScope . serverName ( ) ) ; if ( _registeredCallbacks ...
Internal method to terminate recovery processing of the given FailureScope . All registered RecoveryAgent objects will be directed to terminate processing of the FailureScopein sequence .
160,278
public void registerRecoveryEventListener ( RecoveryEventListener rel ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "registerRecoveryEventListener" , rel ) ; RegisteredRecoveryEventListeners . instance ( ) . add ( rel ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "registerRecoveryEventListener" ) ; }
Register the recovery event callback listener .
160,279
public boolean isHAEnabled ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "isHAEnabled" ) ; final boolean haEnabled = Configuration . HAEnabled ( ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "isHAEnabled" , haEnabled ) ; return haEnabled ; }
This method allows a client service to determine if High Availability support has been enabled for the local cluster .
160,280
public void registerCallback ( UOWScopeCallback callback ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "registerCallback" , new Object [ ] { callback , this } ) ; _callbackManager . addCallback ( callback ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "registerCallback" ) ; }
Register users who want notification on UserTransaction Begin and End
160,281
public void unregisterCallback ( UOWScopeCallback callback ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "unregisterCallback" , new Object [ ] { callback , this } ) ; _callbackManager . removeCallback ( callback ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "unregisterCallback" ) ; }
unregister users who want notification on UserTransaction Begin and End
160,282
private void connectCommon ( Object _udpRequestContextObject ) throws IOException { String localAddress = "*" ; int localPort = 0 ; Map < Object , Object > vcStateMap = getVirtualConnection ( ) . getStateMap ( ) ; if ( vcStateMap != null ) { String value = ( String ) vcStateMap . get ( UDPConfigConstants . CHANNEL_RCV_...
Common connect logic between sync and async connect requests .
160,283
public String retrieveEndpointName ( J2EEName j2eeName ) { for ( Entry < String , J2EEName > entry : endpointNameJ2EENameMap . entrySet ( ) ) { if ( entry . getValue ( ) . equals ( j2eeName ) ) { return entry . getKey ( ) ; } } return null ; }
Get the endpoint name by j2eeName
160,284
private final void _tryUnlink ( ) { if ( 0 >= _cursorCount && _state == LOGICALLY_UNLINKED ) { _previousLink . _nextLink = _nextLink ; _nextLink . _previousLink = _previousLink ; _previousLink = null ; _nextLink = null ; _state = PHYSICALLY_UNLINKED ; } }
Attempt to physically unlink the receiver if appropriate . MUST BE CALLED UNDER _parent MONITOR .
160,285
public final Link getNextLink ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "getNextLink" , _positionString ( ) ) ; } Link nextLink = null ; LinkedList parent = _parent ; if ( null != parent ) { nextLink = _parent . getNextLink ( this ) ; } if ( TraceComp...
Navigate to the next logical link . This version is for use with non - cursored navigation .
160,286
public void xmlWriteOn ( FormattedWriter writer ) throws IOException { String name = "link" ; writer . write ( "<" ) ; writer . write ( name ) ; xmlWriteAttributesOn ( writer ) ; writer . write ( " />" ) ; }
Default XML output .
160,287
@ SuppressWarnings ( "rawtypes" ) public void doPostConstruct ( Class clazz , List < LifecycleCallback > postConstructs ) throws InjectionException { mainClassName = clazz . getName ( ) ; doPostConstruct ( clazz , postConstructs , null ) ; }
Processes the PostConstruct callback method for the application main class
160,288
public void doPostConstruct ( Object instance , List < LifecycleCallback > postConstructs ) throws InjectionException { doPostConstruct ( instance . getClass ( ) , postConstructs , instance ) ; }
Processes the PostConstruct callback method for the login callback handler class
160,289
public void doPreDestroy ( Object instance , List < LifecycleCallback > preDestroy ) throws InjectionException { doPreDestroy ( instance . getClass ( ) , preDestroy , instance ) ; }
Processes the PreDestroy callback method for the login callback handler class
160,290
@ SuppressWarnings ( "rawtypes" ) private void doPostConstruct ( Class clazz , List < LifecycleCallback > postConstructs , Object instance ) throws InjectionException { if ( ! metadataComplete && clazz . getSuperclass ( ) != null ) { doPostConstruct ( clazz . getSuperclass ( ) , postConstructs , instance ) ; } String c...
Processes the PostConstruct callback method
160,291
@ SuppressWarnings ( "rawtypes" ) public Method getAnnotatedMethod ( Class clazz , Class < ? extends Annotation > annotationClass ) { Method m = null ; Method [ ] methods = clazz . getDeclaredMethods ( ) ; for ( int i = 0 ; i < methods . length ; i ++ ) { Annotation [ ] a = methods [ i ] . getAnnotations ( ) ; if ( a !...
Gets the annotated method from the class object .
160,292
@ SuppressWarnings ( { "rawtypes" , "unchecked" } ) public void invokeMethod ( final Class clazz , final String methodName , final Object instance ) { AccessController . doPrivileged ( new PrivilegedAction ( ) { public Object run ( ) { try { final Method m = clazz . getDeclaredMethod ( methodName ) ; if ( ! m . isAcces...
Invokes the class method . The object instance can be null for the application main class .
160,293
public String getMethodNameFromDD ( List < LifecycleCallback > callbacks , String classname ) { String methodName = null ; for ( LifecycleCallback callback : callbacks ) { String callbackClassName ; callbackClassName = callback . getClassName ( ) ; if ( callbackClassName == null ) { callbackClassName = mainClassName ; ...
Gets the lifecycle callback method name from the application client module deployment descriptor
160,294
private final void encrypt ( ) throws Exception { String signStr = Base64Coder . toString ( Base64Coder . base64Encode ( signature ) ) ; String ud = userData . toString ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( this , tc , "encrypt: userData" + ud ) ; } byte [ ] acc...
Encrypt the token passed into the token .
160,295
@ FFDCIgnore ( { BadPaddingException . class , Exception . class } ) private final void decrypt ( ) throws InvalidTokenException { byte [ ] tokenData ; try { tokenData = LTPAKeyUtil . decrypt ( encryptedBytes . clone ( ) , sharedKey , cipher ) ; checkTokenBytes ( tokenData ) ; String UTF8TokenString = toUTF8String ( to...
Decrypt the encrypted token bytes passed into the constructor .
160,296
private final void sign ( ) throws Exception { String dataStr = this . getUserData ( ) . toString ( ) ; byte [ ] data = Base64Coder . getBytes ( dataStr ) ; byte [ ] signature = sign ( data , this . privateKey ) ; this . setSignature ( signature ) ; }
Sign the token passed into the token .
160,297
private final boolean verify ( ) throws Exception { String dataStr = this . getUserData ( ) . toString ( ) ; byte [ ] data = Base64Coder . getBytes ( dataStr ) ; return verify ( data , signature , publicKey ) ; }
Verify the token .
160,298
public final void validateExpiration ( ) throws TokenExpiredException { Date d = new Date ( ) ; Date expD = new Date ( getExpiration ( ) ) ; boolean expired = d . after ( expD ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "Current time = " + d + ", expiration ...
Checks if the token has expired .
160,299
private final void setExpiration ( long expirationInMinutes ) { expirationInMilliseconds = System . currentTimeMillis ( ) + expirationInMinutes * 60 * 1000 ; signature = null ; if ( userData != null ) { encryptedBytes = null ; userData . addAttribute ( "expire" , Long . toString ( expirationInMilliseconds ) ) ; } else ...
Set expiration limit of the LTPA2 token