code
stringlengths
73
34.1k
label
stringclasses
1 value
public synchronized ConversationImpl get(int id) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "get", ""+id); mutableKey.setValue(id); ConversationImpl retValue = idToConvTable.get(mutableKey); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "get", retValue); return retValue; }
java
public synchronized boolean remove(int id) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "remove", ""+id); final boolean result = contains(id); if (result) { mutableKey.setValue(id); idToConvTable.remove(mutableKey); } if (tc.isEntryEnabled()) SibTr.exit(th...
java
public synchronized Iterator iterator() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "iterator"); Iterator returnValue = idToConvTable.values().iterator(); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "iterator", returnValue); return returnValue; }
java
public static TxXATerminator instance(String providerId) { if (tc.isEntryEnabled()) Tr.entry(tc, "instance", providerId); final TxXATerminator xat; synchronized(_txXATerminators) { if(_txXATerminators.containsKey(providerId)) { xat = (TxXATerminator)_txXATerminators.get(providerId); } el...
java
protected JCATranWrapper getTxWrapper(Xid xid, boolean addAssociation) throws XAException { if (tc.isEntryEnabled()) Tr.entry(tc, "getTxWrapper", xid); final JCATranWrapper txWrapper = TxExecutionContextHandler.getTxWrapper(xid, addAssociation); if(txWrapper.getTransaction() == null) ...
java
private String getMethod(ELNode.Function func) throws JspTranslationException { FunctionInfo funcInfo = func.getFunctionInfo(); String signature = funcInfo.getFunctionSignature(); int start = signature.indexOf(' '); if (start < 0) { throw new JspTranslationException("jsp.err...
java
public boolean exists(String index) { boolean exists = false; if (indexNames.isEmpty() == false) { for (i = 0; i < indexNames.size(); i++) { if (index.equals((String) indexNames.elementAt(i))) { exists = true; break; } ...
java
private void _createEagerBeans(FacesContext facesContext) { ExternalContext externalContext = facesContext.getExternalContext(); RuntimeConfig runtimeConfig = RuntimeConfig.getCurrentInstance(externalContext); List<ManagedBean> eagerBeans = new ArrayList<ManagedBean>(); // c...
java
protected static ExpressionFactory loadExpressionFactory(String expressionFactoryClassName) { try { Class<?> expressionFactoryClass = Class.forName(expressionFactoryClassName); return (ExpressionFactory) expressionFactoryClass.newInstance(); } catch (Exception...
java
protected void initCDIIntegration( ServletContext servletContext, ExternalContext externalContext) { // Lookup bean manager and put it into an application scope attribute to // access it later. Remember the trick here is do not call any CDI api // directly, so if no CDI api is ...
java
ThreadGroup getThreadGroup(String identifier, String threadFactoryName, ThreadGroup parentGroup) { ConcurrentHashMap<String, ThreadGroup> threadFactoryToThreadGroup = metadataIdentifierToThreadGroups.get(identifier); if (threadFactoryToThreadGroup == null) if (metadataIdentifierService.isMet...
java
void threadFactoryDestroyed(String threadFactoryName, ThreadGroup parentGroup) { Collection<ThreadGroup> groupsToDestroy = new LinkedList<ThreadGroup>(); for (ConcurrentHashMap<String, ThreadGroup> threadFactoryToThreadGroup : metadataIdentifierToThreadGroups.values()) { ThreadGroup group = ...
java
protected void createRealizationAndState( MessageProcessor messageProcessor, TransactionCommon transaction) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "createRealizationAndState", new Object[] { messageProcessor, tr...
java
protected void reconstitute( MessageProcessor processor, HashMap durableSubscriptionsTable, int startMode) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "reconstitute", new Object[] { processor, durableSubscriptionsT...
java
synchronized private void _put(String componentFamily, String rendererType, Renderer renderer) { Map <String,Renderer> familyRendererMap = _renderers.get(componentFamily); if (familyRendererMap == null) { familyRendererMap = new ConcurrentHashMap<String, Renderer>(8, 0.75f, 1); ...
java
public Object get(Object key) { NonSyncHashtableEntry tab[] = table; int hash = key.hashCode(); int index = (hash & 0x7FFFFFFF) % tab.length; for (NonSyncHashtableEntry e = tab[index]; e != null; e = e.next) { if ((e.hash == hash) && e.key.equals(key)) { return e.value; ...
java
public void write(Writer out, ELContext ctx) throws ELException, IOException { out.write(this.literal); }
java
public Object provideCacheable(Object key) { if (tc.isDebugEnabled()) tc.debug(this,cclass, "provideCacheable", key); return null; }
java
void setMatcher(ContentMatcher m) { if (tc.isEntryEnabled()) tc.entry( this,cclass, "setMatcher", "matcher: " + m + ", hasContent: " + new Boolean(hasContent)); wildMatchers.add(m); this.hasContent |= m.hasTests(); if (tc.isEntryEnabled()) tc.exit(this,cclass, "s...
java
ContentMatcher[] getMatchers() { if (tc.isEntryEnabled()) tc.entry(this,cclass, "getMatchers"); // ans removed as it is never used ! // Matcher[] ans = new Matcher[wildMatchers.size()]; if (tc.isEntryEnabled()) tc.exit(this,cclass, "getMatchers"); return (ContentMatcher[]) wildMa...
java
public ManagedObject get(Token token) throws ObjectManagerException { final String methodName = "get"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) { trace.entry(this, cclass, methodName, ...
java
public static AccessLog.Format convertNCSAFormat(String name) { if (null == name) { return AccessLog.Format.COMMON; } AccessLog.Format format = AccessLog.Format.COMMON; String test = name.trim().toLowerCase(); if ("combined".equals(test)) { format = Access...
java
public static DebugLog.Level convertDebugLevel(String name) { if (null == name) { return DebugLog.Level.NONE; } // WAS panels have expanded names for some of these so we're doing // a series of checks instead of the enum.valueOf() option // default to the WARNING lev...
java
private static Throwable findRootCause(Throwable t) { Throwable root = t; Throwable cause = root.getCause(); while (cause != null) { root = cause; cause = root.getCause(); } return root; }
java
public void setCheckConfig(boolean checkConfig) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setCheckConfig: " + checkConfig); ivCheckConfig = checkConfig; }
java
public void addSingleton(BeanMetaData bmd, boolean startup, Set<String> dependsOnLinks) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "addSingleton: " + bmd.j2eeName + " (startup=" + startup + ", dependsOn=" + (dependsOnLinks != null) + ")"); if (startup) {...
java
public synchronized void checkIfCreateNonPersistentTimerAllowed(EJBModuleMetaDataImpl mmd) { if (ivStopping) { throw new EJBStoppedException(ivName); } if (mmd != null && mmd.ivStopping) { throw new EJBStoppedException(mmd.getJ2EEName().toString()); } }
java
private void finishStarting() throws RuntimeWarning { boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "finishStarting: " + ivName); // NOTE - Any state that is cleared here should also be cleared in // stoppingModu...
java
private HomeRecord resolveEJBLink(J2EEName source, String link) throws RuntimeWarning { boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "resolveEJBLink: " + link); String module = source.getModule(); String compone...
java
private void resolveDependencies() throws RuntimeWarning { // d684950 if (EJSPlatformHelper.isZOSCRA()) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "resolveDependencies: skipped in adjunct process"); return; } /...
java
private void resolveBeanDependencies(BeanMetaData bmd, Set<BeanMetaData> used) throws RuntimeWarning { boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "resolveBeanDependencies: " + bmd.j2eeName); // F7434950.CodRev - If an...
java
private void createStartupBeans() throws RuntimeWarning { boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // d684950 if (EJSPlatformHelper.isZOSCRA()) { if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "createStartupBeans: skipped in adjunct process"); ...
java
private void notifyApplicationEventListeners(Collection<EJBModuleMetaDataImpl> modules, boolean started) throws RuntimeWarning { // F743-26072 final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "notifyApplicationEventListeners: ...
java
public synchronized void addSingletonInitialization(EJSHome home) { if (ivStopping) { throw new EJBStoppedException(home.getJ2EEName().toString()); } if (ivSingletonInitializations == null) { ivSingletonInitializations = new LinkedHashSet<EJSHome>(); } iv...
java
public synchronized boolean queueOrStartNonPersistentTimerAlarm(TimerNpImpl timer, EJBModuleMetaDataImpl module) { if (ivStopping) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "not starting timer alarm after application stop: " + timer); ...
java
private void beginStopping(boolean application, J2EEName j2eeName, Collection<EJBModuleMetaDataImpl> modules) { // F743-26072 boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "beginStopping: application=" + application + ", " + j2ee...
java
public void stoppingModule(EJBModuleMetaDataImpl mmd) { // F743-26072 boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "stoppingModule: " + mmd.getJ2EEName()); // If the application is stopping (rather than a single module)...
java
public void stopping() { boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "stopping"); J2EEName j2eeName = ivApplicationMetaData == null ? null : ivApplicationMetaData.getJ2EEName(); beginStopping(true, j2eeName, iv...
java
void validateVersionedModuleBaseName(String appBaseName, String modBaseName) { for (EJBModuleMetaDataImpl ejbMMD : ivModules) { String versionedAppBaseName = ejbMMD.ivVersionedAppBaseName; if (versionedAppBaseName != null && !versionedAppBaseName.equals(appBaseName)) { th...
java
public SIBusMessage next() throws SISessionDroppedException, SIConnectionDroppedException, SISessionUnavailableException, SIConnectionUnavailableException, SIConnectionLostException, SINotAuthorizedException, SIResourceException, SIErrorException { checkValid(); return _delegate.next(); }
java
public void reset() throws SISessionDroppedException, SIConnectionDroppedException, SISessionUnavailableException, SIConnectionUnavailableException, SIConnectionLostException, SIResourceException, SIErrorException { checkValid(); _delegate.reset(); }
java
private void writeObject(ObjectOutputStream out) throws IOException { try { out.defaultWriteObject(); // p113380 - start of change // write out the header information out.write(EYECATCHER); out.writeShort(PLATFORM); out.writeSh...
java
public static TransmissionLayout segmentToLayout(int segment) { TransmissionLayout layout = XMIT_LAYOUT_UNKNOWN; switch (segment) { case 0x00: layout = XMIT_LAYOUT_UNKNOWN; break; case JFapChannelConstants.SEGMENT_HEARTBEAT: ...
java
public static String getSegmentName(int segmentType) { String segmentName = "(Unknown segment type)"; segmentName = segValues.get(segmentType); if (segmentName == null) segmentName = "(Unknown segment type)"; return segmentName; }
java
private boolean updateConfiguration(EvaluationResult result, ConfigurationInfo info, Collection<ConfigurationInfo> infos, boolean encourageUpdates) throws ConfigUpdateException { //encourageUpdates is overruled by metatype declining nested notifications. encourag...
java
private static Dictionary<String, Object> massageNewConfig(Dictionary<String, Object> oldProps, Dictionary<String, Object> newProps) { ConfigurationDictionary ret = new ConfigurationDictionary(); if (oldProps != null) { for (Enumeration<String> keyItr = oldProps.keys(); keyItr.hasMoreElemen...
java
void reset(com.ibm.wsspi.bytebuffer.WsByteBuffer buff, RichByteBufferPool p) { this.buffer = buff; this.pool = p; }
java
public synchronized void setDelegate(Future<V> delegate) { if (delegateHolder.isCancelled()) { delegate.cancel(mayInterruptWhenCancellingDelegate); } else { this.delegate = delegate; delegateHolder.complete(delegate); } }
java
public boolean isUnauthenticated(Subject subject) { if (subject == null) { return true; } WSCredential wsCred = getWSCredential(subject); if (wsCred == null) { return true; } else { return wsCred.isUnauthenticated(); } }
java
public String getRealm(Subject subject) throws Exception { String realm = null; WSCredential credential = getWSCredential(subject); if (credential != null) { realm = credential.getRealmName(); } return realm; }
java
public static GSSCredential getGSSCredentialFromSubject(final Subject subject) { if (subject == null) { return null; } GSSCredential gssCredential = AccessController.doPrivileged(new PrivilegedAction<GSSCredential>() { @Override public GSSCredential run() { ...
java
@Sensitive public Hashtable<String, Object> createNewHashtableInSubject(@Sensitive final Subject subject) { return AccessController.doPrivileged(new NewHashtablePrivilegedAction(subject)); }
java
@Sensitive public Hashtable<String, ?> getSensitiveHashtableFromSubject(@Sensitive final Subject subject) { if (System.getSecurityManager() == null) { return getHashtableFromSubject(subject); } else { return AccessController.doPrivileged(new GetHashtablePrivilegedAction(subje...
java
@Sensitive public Hashtable<String, ?> getSensitiveHashtableFromSubject(@Sensitive final Subject subject, @Sensitive final String[] properties) { return AccessController.doPrivileged(new PrivilegedAction<Hashtable<String, ?>>() { @Override public Hashtable<String, ?> run() { ...
java
public static void traceMessageIds(TraceComponent callersTrace, String action, SIMessageHandle[] messageHandles) { if ((light_tc.isDebugEnabled() || callersTrace.isDebugEnabled()) && messageHandles != null) { // Build our trace string StringBuffer trcBuffer = new StringBuffer(); t...
java
public static void traceTransaction(TraceComponent callersTrace, String action, Object transaction, int commsId, int commsFlags) { if (light_tc.isDebugEnabled() || callersTrace.isDebugEnabled()) { // Build the trace string String traceText = action + ": " + transaction + " CommsId:" + co...
java
public static void traceException(TraceComponent callersTrace, Throwable ex) { if (light_tc.isDebugEnabled() || callersTrace.isDebugEnabled()) { // Find XA completion code if one exists, as this isn't in a normal dump String xaErrStr = null; if (ex instanceof XAException) { XAExce...
java
public static String minimalToString(Object object) { return object.getClass().getName() + "@" + Integer.toHexString(System.identityHashCode(object)); }
java
public static String msgToString(SIBusMessage message) { if (message == null) return STRING_NULL; return message + "[" + message.getSystemMessageId() + "]"; }
java
private final static void retransformClass(Class<?> clazz) { if (detailedTransformTrace && tc.isEntryEnabled()) Tr.entry(tc, "retransformClass", clazz); try { instrumentation.retransformClasses(clazz); } catch (Throwable t) { Tr.error(tc, "INSTRUMENTATION_TRA...
java
public void send(final SIBusMessage msg, final SITransaction tran) throws SISessionDroppedException, SIConnectionDroppedException, SISessionUnavailableException, SIConnectionUnavailableException, SIConnectionLostException, SILimitExceededException, SINotAuthorizedExceptio...
java
protected IOResult attemptReadFromSocket(TCPBaseRequestContext readReq, boolean fromSelector) throws IOException { IOResult rc = IOResult.NOT_COMPLETE; TCPReadRequestContextImpl req = (TCPReadRequestContextImpl) readReq; TCPConnLink conn = req.getTCPConnLink(); long dataRead = 0; ...
java
protected IOResult attemptWriteToSocket(TCPBaseRequestContext req) throws IOException { IOResult rc = IOResult.NOT_COMPLETE; WsByteBuffer wsBuffArray[] = req.getBuffers(); long bytesWritten = attemptWriteToSocketUsingNIO(req, wsBuffArray); req.setLastIOAmt(bytesWritten); if (...
java
static String getServerResourceAbsolutePath(String resourcePath) { String path = null; File f = new File(resourcePath); if (f.isAbsolute()) { path = resourcePath; } else { WsLocationAdmin wla = locationService.getServiceWithException(); if (wla != null...
java
private AuthConfigProvider getAuthConfigProvider(String appContext) { AuthConfigProvider provider = null; AuthConfigFactory providerFactory = getAuthConfigFactory(); if (providerFactory != null) { if (providerConfigModified && providerFactory instanceof ProviderRegist...
java
protected Subject doHashTableLogin(Subject clientSubject, JaspiRequest jaspiRequest) throws WSLoginFailedException { Subject authenticatedSubject = null; final Hashtable<String, Object> hashTable = getCustomCredentials(clientSubject); String unauthenticatedSubjectString = UNAUTHENTICATED_ID; ...
java
public List<com.ibm.wsspi.security.wim.model.Context> getContexts() { if (contexts == null) { contexts = new ArrayList<com.ibm.wsspi.security.wim.model.Context>(); } return this.contexts; }
java
public List<com.ibm.wsspi.security.wim.model.Entity> getEntities() { if (entities == null) { entities = new ArrayList<com.ibm.wsspi.security.wim.model.Entity>(); } return this.entities; }
java
public List<com.ibm.wsspi.security.wim.model.Control> getControls() { if (controls == null) { controls = new ArrayList<com.ibm.wsspi.security.wim.model.Control>(); } return this.controls; }
java
private int skipForward(char[] chars, int start, int length) { if (tc.isEntryEnabled()) tc.entry(this,cclass, "skipForward", new Object[]{chars,new Integer(start), new Integer(length)}); int ans = length; for (int i = 0; i < length; i++) if (chars[start+i] == MatchSpace.SUBTOPIC_SEPARATO...
java
void get( char[] chars, int start, int length, boolean invert, MatchSpaceKey msg, EvalCache cache, Object contextValue, SearchResults result) throws MatchingException, BadMessageFormatMatchingException { if (tc.isEntryEnabled()) tc.entry(this,cclass, "get", new Object[]{c...
java
public static void reloadApplications(LibertyServer server, final Set<String> appIdsToReload) throws Exception { ServerConfiguration config = server.getServerConfiguration().clone(); /* * Get the apps to remove. */ ConfigElementList<Application> toRemove = new ConfigElementLis...
java
public static void updateConfigDynamically(LibertyServer server, ServerConfiguration config, boolean waitForAppToStart) throws Exception { resetMarksInLogs(server); server.updateServerConfiguration(config); server.waitForStringInLogUsingMark("CWWKG001[7-8]I"); if (waitForAppToStart) { ...
java
public static void resetMarksInLogs(LibertyServer server) throws Exception { server.setMarkToEndOfLog(server.getDefaultLogFile()); server.setMarkToEndOfLog(server.getMostRecentTraceFile()); }
java
private void onHandlerEntry() { if (enabled) { Type exceptionType = handlers.get(handlerPendingInstruction); // Clear the pending instruction flag handlerPendingInstruction = null; // Filter the interested down to this exception Set<ProbeListener> fi...
java
public static FileLock getFileLock(java.io.RandomAccessFile file, String fileName) throws java.io.IOException { return (FileLock) Utils.getImpl("com.ibm.ws.objectManager.utils.FileLockImpl", new Class[] { java.io.RandomAccessFile.class, String.class }, ...
java
public static void initialize(FacesContext context) { if (context.isProjectStage(ProjectStage.Production)) { boolean initialize = true; String elMode = WebConfigParamUtils.getStringInitParameter( context.getExternalContext(), Fa...
java
private void clearTransientAndNonFaceletComponents(final FacesContext context, final UIComponent component) { //Scan children int childCount = component.getChildCount(); if (childCount > 0) { for (int i = 0; i < childCount; i++) { UIComponent c...
java
@Override public void destroy() { if (tc.isEntryEnabled()) Tr.entry(tc, "destroy", this); // check the TSR is active - otherwise we can trigger exceptions when we // try to get data out of it. if (tsr.getTransactionKey() != null) { final Map<String, InstanceA...
java
@Override public void doPrePhaseActions(FacesContext facesContext) { if (!_flashScopeDisabled) { final PhaseId currentPhaseId = facesContext.getCurrentPhaseId(); if (PhaseId.RESTORE_VIEW.equals(currentPhaseId)) { // restore the redirec...
java
@Override public boolean isRedirect() { FacesContext facesContext = FacesContext.getCurrentInstance(); boolean thisRedirect = _isRedirectTrueOnThisRequest(facesContext); boolean prevRedirect = _isRedirectTrueOnPreviousRequest(facesContext); boolean executePhase = !PhaseId.RENDER_...
java
@Override public void keep(String key) { _checkFlashScopeDisabled(); FacesContext facesContext = FacesContext.getCurrentInstance(); Map<String, Object> requestMap = facesContext.getExternalContext().getRequestMap(); Object value = requestMap.get(key); // if the k...
java
@Override public void putNow(String key, Object value) { _checkFlashScopeDisabled(); FacesContext.getCurrentInstance().getExternalContext() .getRequestMap().put(key, value); }
java
@Override public void setKeepMessages(boolean keepMessages) { FacesContext facesContext = FacesContext.getCurrentInstance(); ExternalContext externalContext = facesContext.getExternalContext(); Map<String, Object> requestMap = externalContext.getRequestMap(); requestMap.put(FLASH...
java
@SuppressWarnings("unchecked") private void _restoreMessages(FacesContext facesContext) { List<MessageEntry> messageList = (List<MessageEntry>) _getExecuteFlashMap(facesContext).get(FLASH_KEEP_MESSAGES_LIST); if (messageList != null) { Iterator<MessageEntry>...
java
private void _saveRenderFlashMapTokenForNextRequest(FacesContext facesContext) { ExternalContext externalContext = facesContext.getExternalContext(); String tokenValue = (String) externalContext.getRequestMap().get(FLASH_RENDER_MAP_TOKEN); ClientWindow clientWindow = externalContext.getClien...
java
private String _getRenderFlashMapTokenFromPreviousRequest(FacesContext facesContext) { ExternalContext externalContext = facesContext.getExternalContext(); String tokenValue = null; ClientWindow clientWindow = externalContext.getClientWindow(); if (clientWindow != null) { ...
java
@SuppressWarnings("unchecked") private Map<String, Object> _getRenderFlashMap(FacesContext context) { // Note that we don't have to synchronize here, because it is no problem // if we create more SubKeyMaps with the same subkey, because they are // totally equal and point to the same ent...
java
@SuppressWarnings("unchecked") private Map<String, Object> _getExecuteFlashMap(FacesContext context) { // Note that we don't have to synchronize here, because it is no problem // if we create more SubKeyMaps with the same subkey, because they are // totally equal and point to the same en...
java
private void _clearExecuteFlashMap(FacesContext facesContext) { Map<String, Object> map = _getExecuteFlashMap(facesContext); if (!map.isEmpty()) { //RTC 168417 / JIRA MYFACES-3975 //JSF 2.2 invoke PreClearFlashEvent facesContext.getApplication().publishEvent(facesContext, ...
java
private Cookie _createFlashCookie(String name, String value, ExternalContext externalContext) { Cookie cookie = new Cookie(name, value); cookie.setMaxAge(-1); cookie.setPath(_getCookiePath(externalContext)); cookie.setSecure(externalContext.isSecure()); //cookie.setHttpOnly(...
java
private String _getCookiePath(ExternalContext externalContext) { String contextPath = externalContext.getRequestContextPath(); if (contextPath == null || "".equals(contextPath)) { contextPath = "/"; } return contextPath; }
java
private Boolean _convertToBoolean(Object value) { Boolean booleanValue; if (value instanceof Boolean) { booleanValue = (Boolean) value; } else { booleanValue = Boolean.parseBoolean(value.toString()); } return booleanValue; }
java
@FFDCIgnore(NumberFormatException.class) public static Long evaluateDuration(String strVal, TimeUnit endUnit) { // If the value is a number, simply return the numeric value as a long try { return Long.valueOf(strVal); } catch (NumberFormatException ex) { // ignore ...
java
@Trivial private static String collapseWhitespace(String value) { final int length = value.length(); for (int i = 0; i < length; ++i) { if (isSpace(value.charAt(i))) { return collapse0(value, i, length); } } return value; }
java
public void stop() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "CommsInboundChain Stop"); //stopchain() first quiesce's(invokes chainQuiesced) depending on the chainQuiesceTimeOut //Once the chain is quiesced StopChainTask is initiated.Hence we...
java
private boolean shouldDeferToJwtSso(HttpServletRequest req, MicroProfileJwtConfig config, MicroProfileJwtConfig jwtssoConfig) { if ((!isJwtSsoFeatureActive(config)) && (jwtssoConfig == null)) { return false; } String hdrValue = req.getHeader(Authorization_Header); if (tc.isD...
java
protected boolean matches(File f, boolean isFile) { if (fileFilter != null) { if (isFile && directoriesOnly) { return false; } else if (!isFile && filesOnly) { return false; } else if (fileNameRegex != null) { Matcher m = fileNa...
java
public Object remove(Object key) { synchronized (_cacheL2) { if (!_cacheL1.containsKey(key) && !_cacheL2.containsKey(key)) { // nothing to remove return null; } Object retval; Map newMap; synchro...
java
public void complete(VirtualConnection vc, TCPWriteRequestContext wsc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "complete() called: vc=" + vc); } HttpOutboundServiceContextImpl mySC = (HttpOutboundServiceContextImpl) vc.getStateMap().get(Call...
java