code
stringlengths
73
34.1k
label
stringclasses
1 value
private void parseAccessLog(Map<String, Object> config) { String filename = (String) config.get("access.filePath"); if (null == filename || 0 == filename.trim().length()) { return; } try { this.ncsaLog = new AccessLogger(filename.trim()); } catch (Throwabl...
java
private void parseErrorLog(Map<String, Object> config) { String filename = (String) config.get("error.filePath"); if (null == filename || 0 == filename.trim().length()) { return; } try { this.debugLog = new DebugLogger(filename); } catch (Throwable t) { ...
java
public void stop() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "stop"); } if (this.bRunning) { this.bRunning = false; this.ncsaLog.stop(); this.frcaLog.stop(); this.debugLog.stop(); } ...
java
public void destroy() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "destroy"); } this.bRunning = false; this.ncsaLog.disable(); this.frcaLog.disable(); this.debugLog.disable(); if (TraceComponent.isAnyTracingEnable...
java
private int convertInt(String input, int defaultValue) { try { return Integer.parseInt(input.trim()); } catch (NumberFormatException nfe) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Malformed input: " + input); } ...
java
public void findClients(@Observes @WithAnnotations({RegisterRestClient.class}) ProcessAnnotatedType<?> pat) { Class<?> restClient = pat.getAnnotatedType().getJavaClass(); if (restClient.isInterface()) { restClientClasses.add(restClient); pat.veto(); } else { e...
java
protected void setOpen () { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setOpen"); closed = false; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setOpen"); }
java
public boolean isClosed() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isClosed"); boolean retValue = false; if (connectionProxy == null) { retValue = closed; } else { retValue = closed || connectionProxy.isClos...
java
protected void setClosed() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setClosed"); closed = true; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setClosed"); }
java
public short getProxyID() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getProxyID"); if (!proxyIDSet) { // Someone is trying to use the ID of this proxy object but it has not been set yet. This // is an error as the ID will be invalid ...
java
protected ConnectionProxy getConnectionProxy() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getConnectionProxy"); if (connectionProxy == null) { // Someone is trying to use the connection proxy associated with this proxy object but it ...
java
protected void setProxyID(short s) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setProxyID", ""+s); proxyID = s; proxyIDSet = true; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setProxyID"); }
java
@Override public InputStream getAttachment(final Asset asset, final Attachment attachment) throws IOException, BadVersionException, RequestFailureException { final ZipFile repoZip = createZipFile(); if (null == repoZip) { return null; } InputStream retInputStream = null...
java
@Override protected boolean hasChildren(final String relative) throws IOException { ZipFile zip = createZipFile(); if (null == zip) { return false; } Enumeration<? extends ZipEntry> entries = zip.entries(); while (entries.hasMoreElements()) { ZipEntry ...
java
@Override protected Collection<String> getChildren(final String relative) throws IOException { ZipFile zip = createZipFile(); if (null == zip) { return Collections.emptyList(); } Collection<String> children = new ArrayList<String>(); Enumeration<? extends ZipEnt...
java
@Override protected long getSize(final String relative) { ZipEntry entry = createFromRelative(relative); return (entry == null ? 0 : entry.getSize()); }
java
final JMFNativePart getEncodingMessage() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.entry(this, tc, "getEncodingMessage"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.exit(this, tc, "getEncodingMessage", encoding); return encoding; }
java
public static String getRuntimeProperty(String property, String defaultValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRuntimeProperty", new Object[] {property, defaultValue}); String runtimeProp = RuntimeInfo.getPr...
java
public static boolean getRuntimeBooleanProperty(String property, String defaultValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRuntimeBooleanProperty", new Object[] {property, defaultValue}); boolean runtimeProp = B...
java
public static void checkFapLevel(HandshakeProperties handShakeProps, short fapLevel) throws SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkFapLevel", ""+fapLevel); short actualFapVersion = handShakeProps.getFapLevel(); ...
java
public static boolean isRecoverable(final SIBusMessage mess, final Reliability maxUnrecoverableReliability) { if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isRecoverable", new Object[] {mess, maxUnrecoverableReliability}); final Reliability messageReliability = mess.ge...
java
protected ThirdPartyAlpnNegotiator tryToRegisterAlpnNegotiator(SSLEngine engine, SSLConnectionLink link, boolean useAlpn) { if (isNativeAlpnActive()) { if (useAlpn) { registerNativeAlpn(engine); } } else if (isIbmAlpnActive()) { registerIbmAlpn(engine,...
java
protected void tryToRemoveAlpnNegotiator(ThirdPartyAlpnNegotiator negotiator, SSLEngine engine, SSLConnectionLink link) { // the Java 9 and IBM JSSE ALPN implementations don't use a negotiator object if (negotiator == null && isNativeAlpnActive()) { getNativeAlpnChoice(engine, link); ...
java
protected void getAndRemoveIbmAlpnChoice(SSLEngine engine, SSLConnectionLink link) { if (this.isIbmAlpnActive()) { try { // invoke ALPNJSSEExt.get(engine) String[] alpnResult = (String[]) ibmAlpnGet.invoke(null, engine); // invoke ALPNJSSEExt.delete(e...
java
protected GrizzlyAlpnNegotiator registerGrizzlyAlpn(SSLEngine engine, SSLConnectionLink link) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "registerGrizzlyAlpn entry " + engine); } if (grizzlyNegotiationSupport != null && grizzlyAlpnClientNegoti...
java
protected JettyServerNegotiator registerJettyAlpn(final SSLEngine engine, SSLConnectionLink link) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "registerJettyAlpn entry " + engine); } try { JettyServerNegotiator negotiator = new JettyS...
java
public void addCase(JMFType theCase) { if (theCase == null) throw new NullPointerException("Variant case cannot be null"); JSType newCase = (JSType)theCase; if (cases == null) cases = new JSType[1]; else { JSType[] oldCases = cases; cases = new JSType[oldCases.length + 1]; ...
java
BigInteger setMultiChoiceCount() { if (boxed == null) { multiChoiceCount = BigInteger.ZERO; for (int i = 0; i < cases.length; i++) multiChoiceCount = multiChoiceCount.add(cases[i].setMultiChoiceCount()); } return multiChoiceCount; }
java
public JSVariant[] getDominatedVariants(int i) { if (dominated == null) dominated = new JSVariant[cases.length][]; if (dominated[i] == null) { JSType acase = cases[i]; if (acase instanceof JSVariant) dominated[i] = new JSVariant[] {(JSVariant)acase }; else if (acase instanceof JS...
java
JSchema box(Map context) { if (boxed != null) return boxed; // only do it once JSVariant subTop = new JSVariant(); subTop.cases = cases; subTop.boxedBy = this; boxed = (JSchema)context.get(subTop); if (boxed == null) { boxed = new JSchema(subTop, context); for (int i = 0; i < c...
java
public int getBoxAccessor(JMFSchema schema) { for (Accessor acc = boxAccessor; acc != null; acc = acc.next) if (schema == acc.schema) return acc.accessor; return -1; }
java
public void setPrimaryRolePlayer(com.ibm.wsspi.security.wim.model.RolePlayer value) { this.primaryRolePlayer = value; }
java
public List<com.ibm.wsspi.security.wim.model.RolePlayer> getRelatedRolePlayer() { if (relatedRolePlayer == null) { relatedRolePlayer = new ArrayList<com.ibm.wsspi.security.wim.model.RolePlayer>(); } return this.relatedRolePlayer; }
java
void stop() { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Stopping the HPEL managed service"); } // disconnect from the config admin this.configRef.unregister(); }
java
private static void reconcile(JSType top, List defs, Map refs) { List unres = (List) refs.get(top.getFeatureName()); if (unres != null) for (Iterator iter = unres.iterator(); iter.hasNext(); ) ((JSDynamic) iter.next()).setExpectedType(top); for (Iterator iter = defs.iterator(); iter.hasNext();...
java
private static void addRef(Map refs, String key, JSDynamic unres) { List thisKey = (List) refs.get(key); if (thisKey == null) { thisKey = new ArrayList(); refs.put(key, thisKey); } thisKey.add(unres); }
java
private RepositoryResource getNewerResource(RepositoryResource res1, RepositoryResource res2) throws RepositoryResourceValidationException { // if one of the resources is beta and the other not, return the non-beta one RepositoryResource singleNonBetaResource = returnNonBetaResourceOrNull(res1, res2); ...
java
private RepositoryResource compareNonProductResourceAppliesTo(RepositoryResource res1, RepositoryResource res2) { // all types other than INSTALLS or TOOLS use appliesTo to determine which is the higher level String res1AppliesTo = ((ApplicableToProduct) res1).getAppliesTo(); String res2Applies...
java
private RepositoryResource getNonProductResourceWithHigherVersion(RepositoryResource res1, RepositoryResource res2) { if (res1.getVersion() == null || res2.getVersion() == null) { return res1; // don't have two versions so can't compare } // have two String versions .. convert them...
java
private MinAndMaxVersion getMinAndMaxAppliesToVersionFromAppliesTo(String appliesTo) { List<AppliesToFilterInfo> res1Filters = AppliesToProcessor.parseAppliesToHeader(appliesTo); Version4Digit highestVersion = null; Version4Digit lowestVersion = null; for (AppliesToFilterInfo f : res1Fi...
java
public boolean rarFileExists() { final File zipFile = new File(rarFilePath); return AccessController.doPrivileged(new PrivilegedAction<Boolean>() { @Override public Boolean run() { return zipFile.exists(); } }); }
java
public ClassLoader getClassLoader() throws UnableToAdaptException, MalformedURLException { lock.readLock().lock(); try { if (classloader != null) return classloader; } finally { lock.readLock().unlock(); } if (!rarFileExists()) ...
java
private ProtectionDomain getProtectionDomain(Container rarContainer) throws UnableToAdaptException, MalformedURLException { PermissionCollection perms = new Permissions(); CodeSource codeSource; try { // codesource must start file:/// // assume loc starts with 0 or 1 / ...
java
private boolean deleteBundleCacheDir(File path) { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (FileUtils.fileExists(path)) { if (trace && tc.isDebugEnabled()) { Tr.debug(this, tc, "Path specified exists: " + path.getPath()); } } else { ...
java
@Override public boolean addTransformer(final ClassFileTransformer cft) { boolean added = false; for (ClassLoader loader : followOnClassLoaders) { if (loader instanceof SpringLoader) { added |= ((SpringLoader) loader).addTransformer(cft); } } r...
java
@Override public ClassLoader getThrowawayClassLoader() { ClassLoader newParent = getThrowawayVersion(getParent()); ClassLoader[] newFollowOns = new ClassLoader[followOnClassLoaders.size()]; for (int i = 0; i < newFollowOns.length; i++) { newFollowOns[i] = getThrowawayVersion(foll...
java
public void throwing( Level level, String sourceClass, String sourceMethod, Throwable thrown ) { logp(level, sourceClass, sourceMethod, null, thrown); }
java
public Dispatchable addDispatchableForLocalTransaction(int clientTransactionId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "addDispatchableForLocalTransaction", "" + clientTransactionId); if (idToFirstLevelEntryMap.containsKey(clientTransactionId)) { final SIErrorException ...
java
public Dispatchable addEnlistedDispatchableForGlobalTransaction(int clientXAResourceId, XidProxy xid) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "addEnlistedDispatchableForGlobalTransaction", new Object[] { "" + clientXAResourceId }); AbstractFirstLevelMapEntry firstLevelEntry = null; ...
java
public Dispatchable getDispatchable(int clientId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getDispatchable", "" + clientId); AbstractFirstLevelMapEntry firstLevelEntry = null; if (idToFirstLevelEntryMap.containsKey(clientId)) { firstLevelEntry = ...
java
public Dispatchable removeDispatchableForLocalTransaction(int clientId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "removeDispatchableForLocalTransaction", "" + clientId); AbstractFirstLevelMapEntry firstLevelEntry = null; if (idToFirstLevelEntryMap.containsKey(clientId)) { ...
java
public void removeAllDispatchablesForTransaction(int clientId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "removeAllDispatchablesForTransaction", clientId); idToFirstLevelEntryMap.remove(clientId); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "removeAllDispatchab...
java
public Dispatchable addDispatchableForOptimizedLocalTransaction(int transactionId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "addDispatchableForOptimizedLocalTransaction", "" + transactionId); final Dispatchable result = addDispatchableForLocalTransaction(transactionId); if (t...
java
public int getTotalDispatchables() { int count = 0; Iterator i = idToFirstLevelEntryMap.iterator(); while (i.hasNext()) ++count; return count; }
java
@SuppressWarnings("unchecked") protected <T extends RepositoryResourceImpl> T createNewResource() { T result; if (null == getType()) { result = (T) createTestResource(getRepositoryConnection()); } else { result = ResourceFactory.getInstance().createResource(getType()...
java
public MatchResult matches(ProductDefinition def) { Collection<AppliesToFilterInfo> atfiList = _asset.getWlpInformation().getAppliesToFilterInfo(); if (atfiList == null || atfiList.isEmpty()) { return MatchResult.NOT_APPLICABLE; } MatchResult matchResult = MatchResult.MATCHED...
java
private synchronized void readAttachmentsFromAsset(Asset ass) { Collection<Attachment> attachments = ass.getAttachments(); _attachments = new HashMap<String, AttachmentResourceImpl>(); if (attachments != null) { for (Attachment at : attachments) { _attachments.put(at...
java
public UpdateType updateRequired(RepositoryResourceImpl matching) { if (null == matching) { // No matching asset found return UpdateType.ADD; } if (equivalentWithoutAttachments(matching)) { return UpdateType.NOTHING; } else { // As we are...
java
public RepositoryResourceMatchingData createMatchingData() { RepositoryResourceMatchingData matchingData = new RepositoryResourceMatchingData(); matchingData.setName(getName()); matchingData.setProviderName(getProviderName()); matchingData.setType(getType()); return matchingData;...
java
public List<RepositoryResourceImpl> findMatchingResource() throws RepositoryResourceValidationException, RepositoryBackendException, RepositoryBadDataException, RepositoryResourceNoConnectionException { List<RepositoryResourceImpl> matchingRes; try { matchingRes = performMatching(); ...
java
protected void copyFieldsFrom(RepositoryResourceImpl fromResource, boolean includeAttachmentInfo) { setName(fromResource.getName()); // part of the identification so locked setDescription(fromResource.getDescription()); setShortDescription(fromResource.getShortDescription()); setProvider...
java
public void overWriteAssetData(RepositoryResourceImpl fromResource, boolean includeAttachmentInfo) throws RepositoryResourceValidationException { // Make sure we are dealing with the same type....this // should never happen if (!fromResource.getClass().getName().equals(getClass().getName())) { ...
java
public void moveToState(State state) throws RepositoryBackendException, RepositoryResourceException { if (getState() == null) { return; } int counter = 0; while (getState() != state) { counter++; StateAction nextAction = getState().getNextAction(state)...
java
public boolean equivalent(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; RepositoryResourceImpl other = (RepositoryResourceImpl) obj; if (_asset == null) { ...
java
private static long getCRC(InputStream is) throws IOException { CheckedInputStream check = new CheckedInputStream(is, new CRC32()); BufferedInputStream in = new BufferedInputStream(check); while (in.read() != -1) { // Read file in completely } long crc = check.getChec...
java
public boolean record(String holderName, String heldName) { return i_record(internHolder(holderName, Util_InternMap.DO_FORCE), internHeld(heldName, Util_InternMap.DO_FORCE)); }
java
private static TraceComponent getTc() { if (tc == null) { tc = Tr.register(FileLogHolder.class, null, "com.ibm.ws.logging.internal.resources.LoggingMessages"); } return tc; }
java
private PrintStream getPrimaryStream(boolean showError) { File primaryFile = getPrimaryFile(); setStreamFromFile(primaryFile, false, primaryFile.length(), showError); return currentPrintStream; }
java
@Override public ManagedServiceFactory addingService(ServiceReference<ManagedServiceFactory> reference) { String[] factoryPids = getServicePid(reference); if (factoryPids == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "handleReg...
java
@Override public void removedService(ServiceReference<ManagedServiceFactory> reference, ManagedServiceFactory service) { String[] factoryPids = getServicePid(reference); if (factoryPids == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debu...
java
private Container getContainerRootParent(Container base) { Container puBase = base.getEnclosingContainer(); while (puBase != null && !puBase.isRoot()) { puBase = puBase.getEnclosingContainer(); } if (puBase != null && puBase.isRoot()) { Container parent = puBase.g...
java
protected boolean isAutocompleteOff(FacesContext facesContext, UIComponent component) { if (component instanceof HtmlInputText) { String autocomplete = ((HtmlInputText)component).getAutocomplete(); if (autocomplete != null) { return autocomplete.eq...
java
private MasterEntry updateLpMaps(LWMConfig lp) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "updateLpMaps", lp); } SIBLocalizationPoint lpConfig = ((SIBLocalizationPoint) lp); // Create a new LocalizationDefinition and update the lpMap...
java
public boolean addLocalizationPoint(LWMConfig lp, DestinationDefinition dd) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "addLocalizationPoint", lp); } boolean valid = false; LocalizationDefinition ld = ((JsAdminFactoryImpl) jsaf).cre...
java
private boolean isNewDestination(String key) { Object dd = null; try { dd = _me.getSIBDestinationByUuid(_me.getBusName(), key, false); } catch (Exception e) { // No FFDC code needed } return (dd == null); }
java
public void alterLocalizationPoint(BaseDestination destination,LWMConfig lp) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "alterLocalizationPoint", lp); } boolean valid = true; DestinationDefinition dd = null; ...
java
private String getMasterMapKey(LWMConfig lp) { String key = null; String lpIdentifier = ((SIBLocalizationPoint) lp).getIdentifier(); key = lpIdentifier.substring(0, lpIdentifier.indexOf("@")); return key; }
java
private void deleteDestLocalizations(JsBus bus) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "deleteDestLocalizations", this); } Iterator i = alterDestinations.iterator(); while (i.hasNext()) { String key = (String) i.ne...
java
static File getLogDirectory(Object newValue, File defaultDirectory) { File newDirectory = defaultDirectory; // If a value was specified, try creating a file with it if (newValue != null && newValue instanceof String) { newDirectory = new File((String) newValue); } ...
java
public static String getStringValue(Object newValue, String defaultValue) { if (newValue == null) return defaultValue; return (String) newValue; }
java
public static TraceFormat getFormatValue(Object newValue, TraceFormat defaultValue) { if (newValue != null && newValue instanceof String) { String strValue = ((String) newValue).toUpperCase(); try { return TraceFormat.valueOf(strValue); } catch (Exception e) {...
java
public static String getStringFromCollection(Collection<String> values) { StringBuilder builder = new StringBuilder(); if (values != null) { for (String value : values) { builder.append(value).append(','); } if (builder.charAt(builder.length() - 1) == ...
java
private Number readNumber() throws IOException { StringBuffer sb = new StringBuffer(); int l = lineNo; int c = colNo; while (isDigitChar(lastChar)) { sb.append((char)lastChar); readChar(); } // convert it! ...
java
private String readIdentifier() throws IOException { StringBuffer sb = new StringBuffer(); while ((-1 != lastChar) && Character.isLetter((char)lastChar)) { sb.append((char)lastChar); readChar(); } return sb.toString(); }
java
public static AuthenticationData createAuthenticationData(String userName, UserRegistry userRegistry) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "createAuthenticationData", userName); } AuthenticationData authData = new WSAuthent...
java
public static AuthenticationData createAuthenticationData(byte[] token) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "createAuthenticationData", token); } AuthenticationData authData = new WSAuthenticationData(); authData.s...
java
public static AuthenticationData createAuthenticationData(String userName, String password) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "createAuthenticationData", new Object[] { userName, "Password Not Traced" }); } Authenticatio...
java
public static AuthenticationData createAuthenticationData(Certificate[] certs, UserRegistry userRegistry) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "createAuthenticationData", certs); } AuthenticationData authData = new WSAuthen...
java
private static String getDefaultRealm(UserRegistry _userRegistry) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "getDefaultRealm"); } String realm = DEFAULT_REALM; if (_userRegistry != null) { realm = _userRegist...
java
public static String getUniqueUserName(Subject subject) throws MessagingSecurityException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "getUniqueUserName", subject); } if (subject == null) { return null; } ...
java
public static boolean isUnauthenticated(Subject subject) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "isUnauthenticated", subject); } boolean result = subjectHelper.isUnauthenticated(subject); if (TraceComponent.isAnyTraci...
java
public E pop() throws EmptyStackException { E answer = peek(); // Throws EmptyStackException if there's nothing there _elements.get().remove(_elements.get().size()-1); return answer; }
java
public ThreadContextDescriptor deserializeThreadContext(Map<String, String> execProps) throws IOException, ClassNotFoundException { return threadContextBytes == null ? null : ThreadContextDeserializer.deserialize(threadContextBytes, execProps); }
java
public static HandlerChainInfo buildHandlerChainInfoFromXML(HandlerChain hChain) { HandlerChainInfo hcInfo = new HandlerChainInfo(); // set Service QName if (hChain.getServiceNamePattern() != null) { hcInfo.setServiceNamePattern(new QName(hChain.getServiceNamePattern().getNamespaceUR...
java
public static HandlerInfo buildHandlerInfoFromXML(com.ibm.ws.javaee.dd.common.wsclient.Handler handler) { HandlerInfo hInfo = new HandlerInfo(); hInfo.setHandlerClass(handler.getHandlerClassName()); hInfo.setHandlerName(handler.getHandlerName()); for (ParamValue pv : handler.getInitPar...
java
protected URL resolveHandlerChainFileName(String clzName, String fileName) { URL handlerFile = null; InputStream in = null; String handlerChainFileName = fileName; URL baseUrl = classLoader.getResource(getClassResourceName(clzName)); try { //if the filename start wi...
java
@SuppressWarnings("rawtypes") public static List<Handler> sortHandlers(List<Handler> handlers) { List<LogicalHandler<?>> logicalHandlers = new ArrayList<LogicalHandler<?>>(); List<Handler<?>> protocolHandlers = new ArrayList<Handler<?>>(); for (Handler<?> handler : handlers) { ...
java
private Dictionary<String, Object> buildServicePropsAndFilterTargets(String pid, Dictionary<String, Object> config) throws IOException, InvalidSyntaxException { Dictionary<String, Object> result = new Hashtable<String, Object>(); // we will use this later to discover the properties configured in this c...
java
private String buildTargetString(List<String> privateLibraries) { StringBuilder filter = new StringBuilder(); filter.append("(&"); for (String lib : privateLibraries) filter.append(String.format("(|(%s=%s)(%s=%s))", LibraryStatusService.LIBRARY_IDS, lib, LibraryStatusService.LIBRARY_...
java
@SuppressWarnings("unchecked") public Class<Object> matchCaller(String className) { // Walk the stack backwards to find the calling class: don't // want to use Class.forName, because we want the class as loaded // by it's original classloader Class<Object> stack[] = (Class<Object>[])...
java