code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public RequestViewMetadata cloneInstance()
{
RequestViewMetadata rvm = new RequestViewMetadata();
rvm.initialProcessedClasses = new HashMap<Class<?>, Boolean>(
this.initialProcessedClasses != null ?
this.initialProcessedClasses : this.processedClasses);
i... | java |
public Object get(int accessor) {
try {
return getValue(accessor);
} catch (JMFException ex) {
FFDCFilter.processException(ex, "get", "134", this);
return null;
}
} | java |
@Trivial
private static final boolean containsAll(LinkedHashMap<ThreadContextProvider, ThreadContext> contextProviders, List<ThreadContextProvider> prereqs) {
for (ThreadContextProvider prereq : prereqs)
if (!contextProviders.containsKey(prereq))
return false;
return true... | java |
public static void notAvailable(String jeeName, String taskName) {
String message;
int modSepIndex = jeeName.indexOf('#');
if (modSepIndex == -1) {
message = Tr.formatMessage(tc, "CWWKC1011.app.unavailable", taskName, jeeName);
} else {
String application = jeeNam... | java |
@Override
public @Sensitive byte[] serialize() throws IOException {
// Captured thread context
ByteArrayOutputStream bout = new ByteArrayOutputStream();
int size = threadContext.size();
byte[][] contextBytes = new byte[size][];
for (int i = 0; i < size; i++) {
bou... | java |
public boolean isActive()
{
FacesContext facesContext = FacesContext.getCurrentInstance();
if (facesContext != null)
{
return facesContext.getViewRoot() != null;
}
else
{
// No FacesContext means no view scope active.
return false;
... | java |
public String getSubscriberID()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "getSubscriberID");
SibTr.exit(this, tc, "getSubscriberID", subscriptionID);
}
return subscriptionID;
} | java |
public String[] getTopics()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "getTopics");
SibTr.exit(this, tc, "getTopics", topics);
}
return topics;
} | java |
public void removeTopic(String topic)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "removeTopic", topic);
SelectionCriteria[] tmp = selectionCriteriaList;
// Loop through the selectionCriteriaList
for (int i = 0; i < selection... | java |
public void setTopicSpaceUuid(SIBUuid12 topicSpace)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTopicSpaceUuid", topicSpace);
this.topicSpaceUuid = topicSpace;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java |
public void setSubscriberID(String subscriptionID)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setSubscriberID", subscriptionID);
this.subscriptionID = subscriptionID;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())... | java |
public boolean isSIBServerSubject()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "isSIBServerSubject");
SibTr.exit(this, tc, "isSIBServerSubject", Boolean.valueOf(isSIBServerSubject));
}
return isSIBServerSubject;
... | java |
protected boolean isDurable()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "isDurable");
SibTr.exit(this, tc, "isDurable", Boolean.valueOf(durable));
}
return durable; // F001333-14610
} | java |
public void setDurable(boolean isDurable)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setDurable", Boolean.valueOf(isDurable));
durable = isDurable;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.... | java |
public boolean equalUser(ConsumerDispatcherState subState)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "equalUser");
/* Check user */
boolean equal = equalUser(subState.getUser(), subState.isSIBServerSubject());
if (TraceComp... | java |
public void setReady(boolean ready)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setReady", Boolean.valueOf(ready));
this.ready = ready;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(this, tc... | java |
public boolean isNoLocal()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "isNoLocal");
SibTr.exit(this, tc, "isNoLocal", Boolean.valueOf(noLocal));
}
return noLocal;
} | java |
public void setNoLocal(boolean noLocal)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setNoLocal", Boolean.valueOf(noLocal));
this.noLocal = noLocal;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.e... | java |
public void setDurableHome(String val)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setDurableHome", val);
durableHome = val;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(this, tc, "setDurable... | java |
public void setIsCloned(boolean isCloned)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setIsCloned", Boolean.valueOf(isCloned));
this.isCloned = isCloned;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Sib... | java |
public void setTopicSpaceName(String name)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTopicSpaceName", name);
topicSpaceName = name;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(this, t... | java |
public String getTopicSpaceBusName()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "getTopicSpaceBusName");
SibTr.exit(this, tc, "getTopicSpaceBusName", topicSpaceBusName);
}
return topicSpaceBusName;
} | java |
public void setTopicSpaceBusName(String busname)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTopicSpaceBusName", busname);
topicSpaceBusName = busname;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java |
public SIBUuid8 getRemoteMEUuid()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "getRemoteMEUuid");
SibTr.exit(this, tc, "getRemoteMEUuid", remoteMEUuid);
}
return remoteMEUuid;
} | java |
public void setRemoteMEUuid(SIBUuid8 remoteMEUuid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setRemoteMEUuid", remoteMEUuid);
this.remoteMEUuid = remoteMEUuid;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java |
public static boolean getXMLAsynchronousMethods(boolean[] asynchMethodFlags,
MethodInterface methodInterface,
String[] methodNames,
Class<?>[][] methodParamTypes,
... | java |
static Map<String, List<Method>> getBusinessMethodsByName(BeanMetaData bmd) {
Map<String, List<Method>> methodsByName = new HashMap<String, List<Method>>();
collectBusinessMethodsByName(methodsByName, bmd.methodInfos);
collectBusinessMethodsByName(methodsByName, bmd.localMethodInfos);
re... | java |
static Method findMatchingMethod(Map<String, List<Method>> methodsByName, com.ibm.ws.javaee.dd.ejb.Method me) {
List<Method> methods = methodsByName.get(me.getMethodName());
if (methods == null) {
return null;
}
List<String> meParms = me.getMethodParamList();
if (meP... | java |
public static final boolean methodsEqual(Method remoteMethod, Method beanMethod)
{
if ((remoteMethod == null) || (beanMethod == null)) {
return false;
}
//----------------------
// Compare method names
//----------------------
if (!remoteMethod.getName()... | java |
public static final boolean homeMethodEquals(Method homeMethod,
Properties beanMethodProps)
{
if ((homeMethod == null) || (beanMethodProps == null)) {
return false;
}
//----------------------
// Compare method names
... | java |
public static long timeUnitToMillis(long value,
TimeUnit unit,
boolean annotation,
BeanMetaData bmd) throws EJBConfigurationException {
final boolean isTraceOn = TraceComponent.isAnyTracingEn... | java |
protected UserTransaction getUserTransaction(boolean injection, Object injectionContext) throws NamingException
{
final UserTransaction ut = AccessController.doPrivileged(new PrivilegedAction<UserTransaction>() {
@Override
public UserTransaction run() {
return userTra... | java |
private <T, V> boolean addToMap(Map<Class<?>, Map<T, V>> proxyMap,
T f,
V proxy) {
Map<T, V> proxies = proxyMap.get(serviceClass);
if (proxies == null) {
proxies = new HashMap<T, V>();
proxyMap.put(serviceCla... | java |
public TrustManagerFactory getTrustManagerFactoryInstance(String trustMgr, String ctxtProvider) throws NoSuchAlgorithmException, NoSuchProviderException {
String mgr = trustMgr;
String provider = ctxtProvider;
if (mgr.indexOf('|') != -1) {
String[] trustManagerArray = mgr.split("\\|"... | java |
public KeyManagerFactory getKeyManagerFactoryInstance(String keyMgr, String ctxtProvider) throws NoSuchAlgorithmException, NoSuchProviderException {
String mgr = keyMgr;
String provider = ctxtProvider;
if (mgr.indexOf('|') != -1) {
String[] keyManagerArray = mgr.split("\\|");
... | java |
public URLStreamHandler getHandler() throws Exception {
String handlerString = getSSLProtocolPackageHandler() + ".https.Handler";
URLStreamHandler streamHandler = null;
try {
ClassLoader cl = AccessController.doPrivileged(getCtxClassLoader);
if (cl != null) {
... | java |
private X509KeyManager loadCustomKeyManager(String kmClass) throws Exception {
X509KeyManager km = null;
try {
ClassLoader cl = AccessController.doPrivileged(getCtxClassLoader);
if (cl != null) {
try {
km = (X509KeyManager) cl.loadClass(kmCla... | java |
public static void clearSSLContextCache() {
if (sslContextCacheJAVAX != null && sslContextCacheJAVAX.size() > 0) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "Clearing standard javax.net.ssl.SSLContext cache.");
sslContextCacheJAVAX.clea... | java |
public static void clearSSLContextCache(Collection<File> modifiedFiles) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "Clearing standard javax.net.ssl.SSLContext cached object containing keystores: " + new Object[] { modifiedFiles });
for (File modifiedKeyst... | java |
public static void removeEntryFromSSLContextMap(String keyStorePath) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "removeEntryFromSSLContextMap: " + new Object[] { keyStorePath });
List<SSLConfig> removeList = new ArrayList<SSLConfig>();
for (Entr... | java |
public synchronized Entry next()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "next");
// can only do anything if the cursor is still pointing in to a list
checkEntryParent();
Entry nextEntry = null;
synchronized(parentList)
{
//get the next entry in the list
nextEnt... | java |
public synchronized Entry previous()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "previous");
// can only do anything if the cursor is still pointing in to a list
checkEntryParent();
Entry previousEntry = null;
synchronized(parentList)
{
//get the previous entry
previousEn... | java |
public synchronized Entry current()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "current");
checkEntryParent();
if (tc.isEntryEnabled())
SibTr.exit(tc, "current", current);
return current;
} | java |
public synchronized void moveToTop()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "moveToTop");
checkEntryParent();
//record the reference to the parent list because the call to forceRemove
//will nullify it.
LinkedList list = parentList;
synchronized(list)
{
//remove the curso... | java |
public synchronized void moveToBottom()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "moveToBottom");
checkEntryParent();
//record the parent list
LinkedList list = parentList;
synchronized(list)
{
//remove the cursor from it current position
forceRemove();
//reset ... | java |
public synchronized void moveCursor(Entry newEntry)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "moveCursor", new Object[] { newEntry });
checkEntryParent();
//if the entry is the same as the current one
//then we don't need to bother doing anything
if(newEntry != current)
{
... | java |
public synchronized void moveCursor(Cursor cursor)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "moveCursor", new Object[] { cursor });
checkEntryParent();
synchronized(parentList)
{
//make sure that the cursor is pointing to an entry in the same list
if(cursor != null && c... | java |
Entry forceRemove()
{
Entry removedEntry = null;
checkEntryParent();
if(atTop)
{
//if we are at the top of the list and we are the first top cursor
if(parentList.firstTopCursor == this)
{
//set the first top cursor to be the next one in the list
parentList.f... | java |
public synchronized void finished()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "finished");
checkEntryParent();
synchronized(parentList)
{
//remove the cursor from the list
//this will set the parent list reference to null and make the
//cursor seubsequently unusable
... | java |
@Override
public JsMessage getMessageIfAvailable()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getMessageIfAvailable");
//If message is not available in the message store do not throw exception
boolean throwExceptionIfNotAvailabl... | java |
@Override
public int getInMemoryDataSize()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getInMemoryDataSize");
JsMessage localMsg = getJSMessage(true);
int msgSize = localMsg.getInMemorySize();
if (TraceComponent.isAnyTra... | java |
@Override
public Reliability getReliability()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getReliability");
if (msgReliability == null)
{
JsMessage localMsg = getJSMessage(true);
msgReliability = localMsg.... | java |
public void setReliability(Reliability reliability)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setReliability", reliability);
JsMessage localMsg = getJSMessage(true);
msgReliability = reliability;
localMsg.setReliability(msg... | java |
@Override
public long getMaximumTimeInStore()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getMaximumTimeInStore");
JsMessage localMsg = getJSMessage(true);
long timeToLive = localMsg.getTimeToLive().longValue();
long maxT... | java |
@Override
public SIBUuid12 getProducerConnectionUuid()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "getProducerConnectionUuid");
}
if (producerConnectionUuid == null)
{
JsMessage localMsg = getJSMessa... | java |
public void setProducerConnectionUuid(SIBUuid12 producerConnectionUuid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setProducerConnectionUuid", producerConnectionUuid);
this.producerConnectionUuid = producerConnectionUuid;
if (Trace... | java |
@Override
public boolean isTransacted()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "isTransacted");
SibTr.exit(this, tc, "isTransacted", Boolean.valueOf(transacted));
}
return transacted;
} | java |
public void setMaxStorageStrategy(int requestedMaxStrategy)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this,
tc,
"setMaxStorageStrategy",
Integer.valueOf(requestedMaxStrategy));
ma... | java |
public void setPriority(int newPriority)
{
JsMessage localMsg = getJSMessage(true);
msgPriority = newPriority;
localMsg.setPriority(newPriority);
} | java |
public void addPersistentRef()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "addPersistentRef");
// We have at least one durable reference so the message
// must maintain its level of persistence
maintainPersistence = 1;
... | java |
private void setOriginatingBus(String busName)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setOriginatingBus", busName);
_busName = busName;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(this,... | java |
public String getOriginatingBus()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "getOriginatingBus");
SibTr.exit(this, tc, "getOriginatingBus", _busName);
}
return _busName;
} | java |
public void forceCurrentMEArrivalTimeToJsMessage()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "forceCurrentMEArrivalTimeToJsMessage");
if (!arrivalTimeStored)
{
JsMessage localMsg = getJSMessage(true);
localMs... | java |
@Override
public void unlockMsg(long lockID, Transaction transaction, boolean incrementUnlock) throws MessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "unlockMsg", new Object[] { Long.valueOf(lockID), transaction, Boolean.valueOf(increm... | java |
public void setRegisterForPostEvents(boolean registerEvents)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "setRegisterForPostEvents", Boolean.valueOf(registerEvents));
SibTr.exit(this, tc, "setRegisterForPostEvents");
}
... | java |
@Trivial
public void addAll(PriorityConverterMap convertersToAdd) {
for (PriorityConverter converter : convertersToAdd.converters.values()) {
_addConverter(converter);
}
} | java |
public PriorityConverter getConverter(Type type) {
PriorityConverter converter = converters.get(type);
return converter;
} | java |
public static Version stringToVersion(String str) {
if (str == null || str.isEmpty() || str.equals("0")) {
return Version.emptyVersion;
}
if (str.equals("1") || str.equals("1.0") || str.equals("1.0.0"))
return VERSION_1_0;
return new Version(str);
} | java |
public static final VersionRange stringToVersionRange(String str) {
if (str == null || str.isEmpty() || "0".equals(str))
return EMPTY_RANGE;
if ("[1,1.0.100)".equals(str) || "[1.0,1.0.100)".equals(str) || "[1.0.0,1.0.100)".equals(str))
return INITIAL_RANGE;
return new V... | java |
public void setAttribute(String name, String value) {
this.myAttrs.put(name.toLowerCase(), value);
} | java |
public String getServletURI(HttpServletRequest req) {
String uriName = req.getServletPath();
String pathInfo = req.getPathInfo();
if (pathInfo != null)
uriName = uriName.concat(pathInfo);
if (uriName == null || uriName.length() == 0)
uriName = "/";
uriNa... | java |
void fireProgressEvent(int state, int progress, String message) {
try {
fireProgressEvent(state, progress, message, false);
} catch (InstallException e) {
}
} | java |
void fireProgressEvent(int state, int progress, String message, boolean allowCancel) throws InstallException {
log(Level.FINEST, message);
if (enableEvent) {
try {
eventManager.fireProgressEvent(state, progress, message);
} catch (CancelException ce) {
... | java |
void log(Level level, String msg, Exception e) {
if (e != null)
logger.log(level, msg, e);
} | java |
boolean isEmpty(Map<String, List<List<RepositoryResource>>> installResources) {
if (installResources == null)
return true;
for (List<List<RepositoryResource>> targetList : installResources.values()) {
for (List<RepositoryResource> mrList : targetList) {
if (!mrLis... | java |
boolean isEmpty(List<List<RepositoryResource>> installResources) {
if (installResources == null)
return true;
for (List<RepositoryResource> mrList : installResources) {
if (!mrList.isEmpty())
return false;
}
return true;
} | java |
boolean containFeature(Map<String, ProvisioningFeatureDefinition> installedFeatures, String feature) {
if (installedFeatures.containsKey(feature))
return true;
for (ProvisioningFeatureDefinition pfd : installedFeatures.values()) {
String shortName = InstallUtils.getShortName(pfd)... | java |
Collection<String> getFeaturesToInstall(Collection<String> requiredFeatures, boolean download) {
Collection<String> featuresToInstall = new ArrayList<String>(requiredFeatures.size());
if (!requiredFeatures.isEmpty()) {
Map<String, ProvisioningFeatureDefinition> installedFeatures = product.ge... | java |
boolean containScript(List<File> filesInstalled) {
for (File f : filesInstalled) {
String path = f.getAbsolutePath().toLowerCase();
if (path.contains("/bin/") || path.contains("\\bin\\")) {
return true;
}
}
return false;
} | java |
public static String getNameOfReferenceableItem(Object annotation) {
if (annotation == null) {
return "";
}
String name = "", ref = "";
if (annotation instanceof org.eclipse.microprofile.openapi.annotations.headers.Header) {
name = ((org.eclipse.microprofile.open... | java |
public int getExactSubsSize(String topicExpression)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getExactSubsSize", topicExpression);
int numSubs = 0;
// Test whether table is now empty
if(!_registeredExactConsumerMonitors.isEmpty())
{
if(_registe... | java |
@FFDCIgnore(value = { Exception.class })
public void setSimpleDateFormat(String formatString) {
if (formatString == null) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "Null format string provided; date format will not be changed");
}
return;
}
... | java |
public void cleanUpMaybeDiscriminatorState() {
if (this.dp != null) {
Discriminator d;
Iterator<Discriminator> it = this.dp.getDiscriminators().iterator();
int i = 0;
while (it.hasNext()) {
d = it.next();
if (Discriminator.MAYBE == ... | java |
public void cleanUpAllDiscriminatorState() {
if (this.dp != null) {
Iterator<Discriminator> it = this.dp.getDiscriminators().iterator();
while (it.hasNext()) {
it.next().cleanUpState(this);
}
}
} | java |
public ContextualStorage getContextualStorage(BeanManager beanManager, String flowClientWindowId)
{
ContextualStorage contextualStorage = storageMap.get(flowClientWindowId);
if (contextualStorage == null)
{
synchronized (this)
{
contextualStorage = sto... | java |
@PreDestroy
public void destroyBeansOnPreDestroy()
{
Map<String, ContextualStorage> oldWindowContextStorages = forceNewStorage();
if (!oldWindowContextStorages.isEmpty())
{
FacesContext facesContext = FacesContext.getCurrentInstance();
ServletContext servletContex... | java |
private void printValueIntro(String text) {
if (text != null) {
ffdcLog.print(text);
ffdcLog.print(EQUALS);
}
} | java |
@Sensitive
public static String getCookieValue(Cookie[] cookies, String cookieName) {
if (cookies == null) {
return null;
}
String retVal = null;
for (int i = 0; i < cookies.length; ++i) {
if (cookieName.equalsIgnoreCase(cookies[i].getName())) {
... | java |
public static String[] getCookieValues(Cookie[] cookies, String cookieName) {
if (cookies == null) {
return null;
}
Vector<String> retValues = new Vector<String>();
for (int i = 0; i < cookies.length; ++i) {
if (cookieName.equalsIgnoreCase(cookies[i].getName())) ... | java |
public static void addCookiesToResponse(List<Cookie> cookieList, HttpServletResponse resp) {
Iterator<Cookie> iterator = cookieList.listIterator();
while (iterator.hasNext()) {
Cookie cookie = iterator.next();
if (cookie != null) {
resp.addCookie(cookie);
... | java |
public void setLogHandler(String id, LogHandler ref) {
if (id != null && ref != null) {
logHandlerServices.put(id, ref);
}
} | java |
public synchronized void modified(Properties props) {
for (Object key : props.keySet()) {
String msgId = (String) key;
String logHandlerIds = props.getProperty(msgId);
Set<String> logHandlerIdSet = getOrCreateLogHandlerIdSet(msgId);
// "logHandlerIds" is a comm... | java |
protected void addMsgToLogHandler(String msgId, String handlerId) {
Set<String> logHandlerIdSet = getOrCreateLogHandlerIdSet(msgId);
logHandlerIdSet.add(handlerId);
} | java |
protected void removeMsgFromLogHandler(String msgId, String handlerId) {
Set<String> logHandlerIdSet = getOrCreateLogHandlerIdSet(msgId);
logHandlerIdSet.remove(handlerId);
} | java |
private String[] filter(String[] candidateCipherSuites, String[] requested, OptionsKey options) {
List<String> candidates = Arrays.asList(candidateCipherSuites);
EnumSet<Options> supports = toOptions(options.supports, true);
EnumSet<Options> requires = toOptions(options.requires, false);
... | java |
protected void markStepForFailure() {
StopLock stopLock = getStopLock(); // Store in local variable to facilitate Ctrl+Shift+G search in Eclipse
synchronized (stopLock) {
updateStepBatchStatus(BatchStatus.FAILED);
if (!issuedFailureMessageToJobLog) {
stepThreadHel... | java |
protected boolean wasStopIssuedOnJob() {
StopLock stopLock = getStopLock(); // Store in local variable to facilitate Ctrl+Shift+G search in Eclipse
synchronized (stopLock) {
if (runtimeWorkUnitExecution.getBatchStatus().equals(BatchStatus.STOPPING)) {
return true;
... | java |
protected StepThreadExecutionEntity createStepExecutionIfStepShouldBeExecuted() throws DoNotRestartStepThreadException {
StepThreadExecutionEntity newStepExecution = null;
StepThreadInstanceKey stepThreadInstanceKey = getStepThreadInstanceKey();
stepThreadInstance = getPersistenceManagerServic... | java |
public Selector parseWholeSelector(String selector)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(
cclass,
"parseWholeSelector",
"selector: " + selector);
// Need to set the domain to XPATH1.0
Identifier ident = new IdentifierImpl(selector);
// S... | java |
private void parseSelector(String selector) throws InvalidXPathSyntaxException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass,
"parseSelector",
"selector: " + selector);
// Set the locationStep to -1
locationStep = -1;
int star... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.