code
stringlengths
73
34.1k
label
stringclasses
1 value
protected Object getSession(String id, int version, boolean isSessionAccess, boolean forceSessionRetrieval, Object xdCorrelator) { if (isSessionAccess) { if (version == -1) { _store.refreshSession(id, xdCorrelator); } else { _store.refreshSession(id, versi...
java
public static byte[] copyCredToken(byte[] credToken) { if (credToken == null) { return null; } final int LEN = credToken.length; if (LEN == 0) { return new byte[LEN]; } byte[] newCredToken = new byte[LEN]; System.arraycopy(credToken, 0, ...
java
public static X509Certificate[] copyCertChain(X509Certificate[] certChain) { if (certChain == null) { return null; } final int LEN = certChain.length; if (LEN == 0) { return new X509Certificate[LEN]; } X509Certificate[] newCertChain = new X509Ce...
java
public void waitOnChains(long quiesceTimeout) { ChannelFramework cf = ChannelFrameworkFactory.getChannelFramework(); int elapsedTime = 0; if (waitingChainNames.size() > 0 && elapsedTime < quiesceTimeout) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { ...
java
static void closeLink(CommsConnection conn) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "closeLink", conn); conn.setSchemaSet(null); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "closeLink"); }
java
static byte[] receiveHandshake(CommsConnection conn, byte[] data) throws JMFException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "receiveHandshake", conn); Coder coder = new Coder(data); conn.setSchemaSet(makeSchemaIdSet(coder)); byte[] ids = makeSchemaIdList(JMF...
java
static void receiveSchemas(CommsConnection conn, byte[] data) throws JMFException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "receiveSchemas", conn); final SchemaSet ids; try { ids = (SchemaSet)conn.getSchemaSet(); if (ids == null) { if (TraceCom...
java
static void sendSchemas(CommsConnection conn, JMFSchema[] schemas) throws SIConnectionLostException, SIConnectionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "sendSchemas", conn); // Check if the recepient has all the schemas needed to decode the...
java
private static void addSchemaDefinitions(SchemaSet ids, Coder coder) throws JMFException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc, "Decoding " + coder.count + "new schema definitions"); // Decode the new schemas and add them to the registry and the list of known ...
java
public void cleanUpSubject() { if (temporarySubject != null) { AccessController.doPrivileged(new PrivilegedAction<Object>() { @Override public Object run() { removeSubjectPrincipals(); removeSubjectPublicCredentials(); ...
java
protected void payloadWritten(int payloadSize) { if (tc.isEntryEnabled()) Tr.entry(tc, "payloadWritten", new Object[] {this, new Integer(payloadSize)}); // Track the unwritten payload decrease directly. We take no account for this classes header // values in this figure. The total payload rem...
java
protected void payloadDeleted(int totalPayloadSize, int unwrittenPayloadSize) { if (tc.isEntryEnabled()) Tr.entry(tc, "payloadDeleted", new Object[] {this, new Integer(totalPayloadSize), new Integer(unwrittenPayloadSize)}); // Track the payload decreases directly. We take no account for this classe...
java
public BeanId getBeanId() { if (ivBeanId == null) { ivBeanId = new BeanId(ivBMD.j2eeName, null, false); } return ivBeanId; }
java
protected String promptForText(com.ibm.ws.security.audit.reader.utils.ConsoleWrapper stdin, PrintStream stdout) { return promptForText(stdin, stdout, "encode.enterText", "encode.reenterText", "encode.readError", "encode.entriesDidNotMatch"); }
java
public static String getPropertyOrNull(String name) { try { return AccessController.doPrivileged(new SystemPropertyAction(name)); } catch (SecurityException ex) { LOG.log(Level.FINE, "SecurityException raised getting property " + name, ex); return null; } ...
java
public MatchTarget duplicate() { try { return (MatchTarget) clone(); } catch (CloneNotSupportedException e) { // No FFDC Code Needed. // FFDC driven by wrapper class. FFDC.processException(cclass, "com.ibm.ws.sib.matchspace.MatchTarget.duplicate", e, ...
java
@Override public EJBBinding createBindingObject(HomeRecord hr, HomeWrapperSet homeSet, String interfaceName, int interfaceIndex, boolean local) { ...
java
@Override public EJBBinding createJavaBindingObject(HomeRecord hr, HomeWrapperSet homeSet, String interfaceName, int interfaceIndex, ...
java
@Override protected Class<?> loadClass(String className, boolean resolve) throws ClassNotFoundException { Class<?> loadedClass = null; synchronized (this) { loadedClass = findLoadedClass(className); if (loadedClass == null) { int index =...
java
public DERObject getConvertedValue( DERObjectIdentifier oid, String value) { if (value.length() != 0 && value.charAt(0) == '#') { try { return convertHexEncoded(value, 1); } catch (IOException e) ...
java
@Override public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException { ...
java
public synchronized void setStoreFileSize(long newMinimumStoreFileSize , long newMaximumStoreFileSize) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, ...
java
public synchronized void setCachedManagedObjectsSize(int cachedManagedObjectsSize) throws ObjectManagerException { this.cachedManagedObjectsSize = cachedManagedObjectsSize; cachedManagedObjects = new java.lang.ref.SoftReference[cachedManagedObjectsSize]; writeHeader(); ...
java
protected void setAllocationAllowed() throws ObjectManagerException { final String methodName = "setAllocationAllowed"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, new Object[] { new Long(storeFileSizeAllocated), ...
java
public final void reserve(int deltaSize, boolean paced) throws ObjectManagerException { final String methodName = "reserve"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodNa...
java
public void simulateFull(boolean isFull) throws ObjectManagerException { final String methodName = "simulateFull"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, new Object[] { new Boolean(isFull) }); if (isFull...
java
public synchronized void flush() throws ObjectManagerException { final String methodName = "flush"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName); if (storeSt...
java
private void updateDirectory() throws ObjectManagerException { final String methodName = "updateDirectory"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName); // TODO See...
java
FreeSpace allocateSpace(long lengthRequired) throws ObjectManagerException { final String methodName = "allocateSpace"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, ...
java
public Map<String, ProvisioningFeatureDefinition> getFeatureDefinitions(String productName) { if (productName.equals(CORE_PRODUCT_NAME)) { return getCoreProductFeatureDefinitions(); } else if (productName.equals(USR_PRODUCT_EXT_NAME)) { return getUsrProductFeatureDefinitions(); ...
java
public Map<String, ProvisioningFeatureDefinition> getCoreFeatureDefinitionsExceptPlatform() { Map<String, ProvisioningFeatureDefinition> features = new TreeMap<String, ProvisioningFeatureDefinition>(); File featureDir = getCoreFeatureDir(); //the feature directory may not exist if the packaged s...
java
private Map<String, ProvisioningFeatureDefinition> getCoreProductFeatureDefinitions() { Map<String, ProvisioningFeatureDefinition> features = new TreeMap<String, ProvisioningFeatureDefinition>(); File featureDir = getCoreFeatureDir(); //the feature directory may not exist if the packaged server ...
java
private Map<String, ProvisioningFeatureDefinition> getUsrProductFeatureDefinitions() { Map<String, ProvisioningFeatureDefinition> features = null; File userDir = Utils.getUserDir(); if (userDir != null && userDir.exists()) { File userFeatureDir = new File(userDir, USER_FEATURE_DIR); ...
java
public String getProdFeatureLocation(String productName) { String location = null; if (productName.equals(CORE_PRODUCT_NAME)) { location = Utils.getInstallDir().getAbsolutePath(); } else if (productName.equals(USR_PRODUCT_EXT_NAME)) { location = Utils.getUserDir().getAbso...
java
public String getProdFeatureId(String productName) { String productId = null; if (!productName.equals(CORE_PRODUCT_NAME) && !productName.equals(USR_PRODUCT_EXT_NAME)) { readProductExtFeatureLocations(); if (productExtNameInfoMap.containsKey(productName)) { product...
java
public File getCoreFeatureDir() { File featureDir = null; File installDir = Utils.getInstallDir(); if (installDir != null) { featureDir = new File(installDir, FEATURE_DIR); } if (featureDir == null) { throw new RuntimeException("Feature Directory not fou...
java
public File getCorePlatformDir() { File platformDir = null; File installDir = Utils.getInstallDir(); if (installDir != null) { platformDir = new File(installDir, PLATFORM_DIR); } if (platformDir == null) { throw new RuntimeException("Platform Directory n...
java
public File getCoreAssetDir() { File assetDir = null; File installDir = Utils.getInstallDir(); if (installDir != null) { assetDir = new File(installDir, ASSET_DIR); } if (assetDir == null) { throw new RuntimeException("Asset Directory not found"); ...
java
public ContentBasedLocalBundleRepository getBundleRepository(String featureName, WsLocationAdmin locService) { return BundleRepositoryRegistry.getRepositoryHolder(featureName).getBundleRepository(); }
java
@FFDCIgnore({IllegalCharsetNameException.class, UnsupportedCharsetException.class}) public static String mapCharset(String enc, String deflt) { if (enc == null) { return deflt; } //older versions of tomcat don't properly parse ContentType headers with stuff //after charse...
java
@BeforeClass public static void setUp() throws Exception { // Add LDAP variables to bootstrap properties file LDAPUtils.addLDAPVariables(server); Log.info(c, "setUp", "Starting the server... (will wait for userRegistry servlet to start)"); server.copyFileToLibertyInstallRoot("lib/fea...
java
@Test public void getUserSecurityName() throws Exception { String user = "vmmtestuser"; String securityName = "cn=vmmtestuser,cn=users,dc=secfvt2,dc=austin,dc=ibm,dc=com"; Log.info(c, "getUserSecurityName", "Checking with a valid user."); LDAPFatUtils.assertDNsEqual("User security n...
java
public void initialRead() { try { this.buffer = this.isc.getRequestBodyBuffer(); if (null != this.buffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Buffer returned from getRequestBodyBuffer : " + this.buffer); ...
java
private String encode(PrintStream stderr, String plaintext, String encodingType, Map<String, String> properties) throws InvalidPasswordEncodingException, UnsupportedCryptoAlgorithmException { String ret = null; try { ret = PasswordUtil.encode(plaintext, encodingType...
java
protected String getDescription(JSONArray customInfoArray) { StringBuffer sb = new StringBuffer(); sb.append(getMessage("encode.option-custom.encryption")); for (int i = 0; i < customInfoArray.size(); i++) { JSONObject customInfo = (JSONObject) customInfoArray.get(i); Str...
java
private void extractFiles(ArtifactMetadata artifactMetadata) throws RepositoryArchiveIOException, RepositoryArchiveEntryNotFoundException, RepositoryArchiveException { _readmePayload = artifactMetadata.getFileWithExtension(".txt"); if (_readmePayload == null) { throw new RepositoryArchiveEn...
java
private String getFixId(IFixInfo iFixInfo, ExtractedFileInformation xmlInfo) throws RepositoryArchiveInvalidEntryException { // check for null input if (null == iFixInfo) { throw new RepositoryArchiveInvalidEntryException("Null XML object provided", xmlInfo.getSourceArchive(), xmlInfo.getSe...
java
private List<String> getProvides(IFixInfo iFixInfo, ParserBase.ExtractedFileInformation xmlInfo) throws RepositoryArchiveInvalidEntryException { // check for null input if (null == iFixInfo) { throw new RepositoryArchiveInvalidEntryException("Null document provided", xmlInfo.getSourceArchiv...
java
private String parseManifestForAppliesTo(File file) throws RepositoryArchiveIOException { Manifest mf = null; try (JarFile jar = new JarFile(file)) { try { mf = jar.getManifest(); } catch (IOException ioe) { throw new RepositoryArchiveIOException(...
java
public static int bytesToInt(byte[] bytes, int offset) { return ((bytes[offset + 3] & 0xFF) << 0) + ((bytes[offset + 2] & 0xFF) << 8) + ((bytes[offset + 1] & 0xFF) << 16) + ((bytes[offset + 0] & 0xFF) << 24); }
java
public static short bytesToShort(byte[] bytes, int offset) { short result = 0x0; for (int i = offset; i < offset + 2; ++i) { result = (short) ((result) << 8); result |= (bytes[i] & 0x00FF); } return result; }
java
public static long bytesToLong(byte[] bytes, int offset) { long result = 0x0; for (int i = offset; i < offset + 8; ++i) { result = result << 8; result |= (bytes[i] & 0x00000000000000FFl); } return result; }
java
public static char bytesToChar(byte[] bytes, int offset) { char result = 0x0; for (int i = offset; i < offset + 2; ++i) { result = (char) ((result) << 8); result |= (bytes[i] & 0x00FF); } return result; }
java
public static void intToBytes(int value, byte[] bytes, int offset) { bytes[offset + 3] = (byte) (value >>> 0); bytes[offset + 2] = (byte) (value >>> 8); bytes[offset + 1] = (byte) (value >>> 16); bytes[offset + 0] = (byte) (value >>> 24); }
java
public static void shortToBytes(short value, byte[] bytes, int offset) { for (int i = offset + 1; i >= offset; --i) { bytes[i] = (byte) value; value = (short) ((value) >> 8); } }
java
public static void longToBytes(long value, byte[] bytes, int offset) { for (int i = offset + 7; i >= offset; --i) { bytes[i] = (byte) value; value = value >> 8; } }
java
public static long varIntBytesToLong(byte[] bytes, int offset) { int shift = 0; long result = 0; while (shift < 64) { final byte b = bytes[offset++]; result |= (long)(b & 0x7F) << shift; if ((b & 0x80) == 0) { return result; } ...
java
public static int varIntBytesToInt(byte[] bytes, int offset) { byte tmp = bytes[offset++]; if (tmp >= 0) { return tmp; } int result = tmp & 0x7f; if ((tmp = bytes[offset++]) >= 0) { result |= tmp << 7; } else { result |= (tmp & 0x7f) <...
java
public static int writeLongAsVarIntBytes(long v, byte[] bytes, int offest) { int pos = offest; while (true) { if ((v & ~0x7FL) == 0) { bytes[pos++] = ((byte)v); return pos; } else { bytes[pos++] = (byte)((v & 0x7F) | 0x80); ...
java
public static int writeIntAsVarIntBytes(int intVal, byte[] bytes, int offset) { int pos = offset; int v = intVal; if ((v & ~0x7F) == 0) { bytes[pos++] = ((byte) v); return 1 + offset; } while (true) { if ((v & ~0x7F) == 0) { b...
java
public static String limitedBytesToString(byte[] bytes) { if(bytes.length <= 1000) { return Arrays.toString(bytes); } else { byte[] firstBytes = new byte[1000]; System.arraycopy(bytes, 0, firstBytes, 0, 1000); return Arrays.toString(firstBytes); } ...
java
public static RESTHandlerJsonException createRESTHandlerJsonException(Throwable e, JSONConverter converter, int status) { try { //See if we need to fetch a converter if (converter == null) { converter = JSONConverter.getConverter(); } //Create a ne...
java
public static synchronized void notifyStarted(HttpEndpointImpl endpoint, String resolvedHostName, int port, boolean isHttps) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Notify endpoint started: " + endpoint, resolvedHostName, port, isHttps, defaultHost.get(), a...
java
public static synchronized void notifyStopped(HttpEndpointImpl endpoint, String resolvedHostName, int port, boolean isHttps) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Notify endpoint stopped: " + endpoint, resolvedHostName, port, isHttps, defaultHost.get(), a...
java
public void addWsByteBuffer(WsByteBuffer buffer) { if (this.allWsByteBuffers == null) { this.allWsByteBuffers = new Hashtable<WsByteBuffer, WsByteBuffer>(); } this.allWsByteBuffers.put(buffer, buffer); }
java
public void addOwner(String owner) { if (this.owners == null) { this.owners = new Hashtable<String, String>(); } this.owners.put(owner, owner); }
java
public String getInputUniqueUserId(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_USER_ID_MAPPING, UNIQUE_USER_ID_DEFAULT); return returnValue; }
java
public String getOutputUniqueUserId(String inputVirtualRealm) { // initialize the return value String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_USER_ID_MAPPING, UNIQUE_USER_ID_DEFAULT); return returnValue; }
java
public String getInputUserSecurityName(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_USER_SECURITY_NAME_MAPPING, INPUT_USER_SECURITY_NAME_DEFAULT); return returnVal...
java
public String getInputUserDisplayName(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_USER_DISPLAY_NAME_MAPPING, USER_DISPLAY_NAME_DEFAULT); return returnValue; }
java
public String getOutputUserDisplayName(String inputVirtualRealm) { // initialize the return value String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_USER_DISPLAY_NAME_MAPPING, USER_DISPLAY_NAME_DEFAULT); return returnValue; ...
java
public String getInputUniqueGroupId(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_GROUP_ID_MAPPING, INPUT_UNIQUE_GROUP_ID_DEFAULT); return returnValue; }
java
public String getOutputUniqueGroupId(String inputVirtualRealm) { // initialize the return value String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_GROUP_ID_MAPPING, OUTPUT_UNIQUE_GROUP_ID_DEFAULT); return returnValue; ...
java
public String getInputGroupSecurityName(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_SECURITY_NAME_MAPPING, INPUT_GROUP_SECURITY_NAME_DEFAULT); return return...
java
public String getOutputGroupSecurityName(String inputVirtualRealm) { // initialize the return value String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_SECURITY_NAME_MAPPING, OUTPUT_GROUP_SECURITY_NAME_DEFAULT); return re...
java
public String getInputGroupDisplayName(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_DISPLAY_NAME_MAPPING, GROUP_DISPLAY_NAME_DEFAULT); return returnValue; ...
java
public String getOutputGroupDisplayName(String inputVirtualRealm) { // initialize the return value String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_DISPLAY_NAME_MAPPING, GROUP_DISPLAY_NAME_DEFAULT); return returnValue;...
java
@FFDCIgnore(Exception.class) private String getInputMapping(String inputVirtualRealm, String inputProperty, String inputDefaultProperty) { String methodName = "getInputMapping"; // initialize the return value String returnValue = null; RealmConfig realmConfig = mappingUtils.getCoreC...
java
private static Object _convertOrCoerceValue(FacesContext facesContext, UIComponent uiComponent, Object value, SelectItem selectItem, Converter converter) { Object itemValue = selectItem.getValue(); if (converter != null && itemValue instanceof String) { it...
java
public final static MessageType getMessageType(Byte aValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue); return set[aValue.intValue()]; }
java
void balance( int kFactor, NodeStack stack, GBSNode fpoint, int fpidx, int maxBal) { /* Get parent of balance point */ GBSNode bparent = stack.node(fpidx - 1); switch (kFactor) { case 2: balance2(stack, bparent, fpoin...
java
private void balance2( NodeStack stack, GBSNode bparent, /* Parent of fringe balance point */ GBSNode fpoint, /* Fringe balance point */ int fpidx, /* Index within stack of fpoint */ int maxBal) ...
java
private void balance4( NodeStack stack, GBSNode bparent, /* Parent of fringe balance point */ GBSNode fpoint, /* Fringe balance point */ int fpidx, /* Index within stack of fpoint */ int maxBal) ...
java
private void balance6( NodeStack stack, GBSNode bparent, /* Parent of fringe balance point */ GBSNode fpoint, /* Fringe balance point */ int fpidx, /* Index within stack of fpoint */ int maxBal) ...
java
private void balance8( NodeStack stack, GBSNode bparent, /* Parent of fringe balance point */ GBSNode fpoint, /* Fringe balance point */ int fpidx, /* Index within stack of fpoint */ int maxBal) ...
java
@Reference(name = BASE_INSTANCE, service = ContextService.class, cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC, policyOption = ReferencePolicyOption.GREEDY, target = "(id=unbound)") protected void setBaseInsta...
java
@Reference(name = THREAD_CONTEXT_MANAGER, service = WSContextService.class, cardinality = ReferenceCardinality.MANDATORY, policy = ReferencePolicy.STATIC, target = "(component.name=com.ibm.ws.context.manager)") protected void setThreadContextManager(WSCont...
java
protected void unsetBaseInstance(ServiceReference<ContextService> ref) { lock.writeLock().lock(); try { threadContextConfigurations = null; } finally { lock.writeLock().unlock(); } }
java
@Override public synchronized void complete() { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINEST)) { logger.entering(CLASS_NAME, "complete",this); } if (!lockHeldByDifferentThread()) { //We can't call this or WebConta...
java
@Override public synchronized void dispatch(ServletContext context, String path) throws IllegalStateException { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINEST)) { logger.entering(CLASS_NAME, "dispatch(ctx,path)",new Object [] {this,context,path}); ...
java
public final void commit_one_phase() throws XAException { if (tc.isEntryEnabled()) Tr.entry(tc, "commit_one_phase", _resource); if (tcSummary.isDebugEnabled()) Tr.debug(tcSummary, "commit_one_phase", this); // // Commit the one-phase resource. // try { ...
java
public final void rollback() throws XAException { if (tc.isEntryEnabled()) Tr.entry(tc, "rollback", _resource); if (tcSummary.isDebugEnabled()) Tr.debug(tcSummary, "rollback", this); try { _resource.rollback(_xid); // Record the vote. // _completedCommit defaults ...
java
public final void forget() throws XAException { if (tc.isEntryEnabled()) { Tr.entry(tc, "forget", _resource); Tr.exit(tc, "forget"); } }
java
private void verifyConfiguration() throws DeploymentException { Map<URL, ModuleMetaData> mmds = getModuleMetaDataMap(); if (mmds != null) { for (Map.Entry<URL, ModuleMetaData> entry : mmds.entrySet()) { ModuleMetaData mmd = entry.getValue(); if (mmd instanceof...
java
private String getModuleFromClass(Class<?> klass, Map<String, ModuleProperties> moduleMap) { String file = getClassFileLocation(klass); if (tc.isDebugEnabled()) { Tr.debug(tc, "File name : " + file); } String moduleName = null; for (Map.Entry<String, ModuleProperties>...
java
private Properties getGlobalLoginBasicProps() throws Exception { String realm = getWebAppSecurityConfig().getBasicAuthRealmName(); Properties props = new Properties(); if (realm == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "basicAuthenticationMechanismRealmName ...
java
private Properties getGlobalLoginFormProps() throws Exception { WebAppSecurityConfig webAppSecConfig = getWebAppSecurityConfig(); String loginURL = webAppSecConfig.getLoginFormURL(); String errorURL = webAppSecConfig.getLoginErrorURL(); if (loginURL == null || loginURL.isEmpty()) { ...
java
private void initialize(Map<String, Object> metadata) { if (metadata == null) { metadata = new HashMap<String, Object>(); } metadata.put(REQUEST_ID, generateRequestID()); this.metadata = metadata; }
java
@Override public void addObserver(Observer observer) { super.addObserver(observer); if (countObservers() > 1) { super.deleteObserver(observer); AbstractConnectionFactoryService cfSvc = (AbstractConnectionFactoryService) observer; Object[] params = new Object[] { C...
java
@Override public void destroyConnectionFactories() { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) { final String pmName; if (pm != null) pmName = pm.getUniqueId(); else pmName = "fact...
java