code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public void sendToMe(SIBUuid8 targetME, int priority, AbstractMessage aMessage)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "sendToMe", new Object[] { aMessage, Integer.valueOf(priority), targetME });
// find an appropriate MPConnection
MPConnection firstCho... | java |
public void sendDownTree(SIBUuid8[] targets, int priority, AbstractMessage cMsg)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "sendDownTree", new Object[] { this, cMsg, Integer.valueOf(priority), targets});
// Select a set of connections, then annotate the messag... | java |
public boolean isMEReachable(SIBUuid8 meUuid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isMEReachable", new Object[] {this, meUuid});
boolean result = (findMPConnection(meUuid) != null);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryE... | java |
public boolean isCompatibleME(SIBUuid8 meUuid, ProtocolVersion version)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isCompatibleME", new Object[] {meUuid});
boolean result = false;
MPConnection conn = findMPConnection(meUuid);
if (conn!=null)
... | java |
public void forceConnect(SIBUuid8 meUuid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "forceConnect", meUuid);
if(_routingManager!=null)
_routingManager.connectToME(meUuid);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java |
private List<SecurityConstraint> createSecurityConstraints(SecurityMetadata securityMetadataFromDD, ServletSecurityElement servletSecurity, Collection<String> urlPatterns) {
List<SecurityConstraint> securityConstraints = new ArrayList<SecurityConstraint>();
securityConstraints.add(getConstraintFromHttpE... | java |
private SecurityConstraint getConstraintFromHttpElement(SecurityMetadata securityMetadataFromDD, Collection<String> urlPatterns, ServletSecurityElement servletSecurity) {
List<String> omissionMethods = new ArrayList<String>();
if (!servletSecurity.getMethodNames().isEmpty()) {
omissionMethod... | java |
private List<SecurityConstraint> getConstraintsFromHttpMethodElement(SecurityMetadata securityMetadataFromDD, Collection<String> urlPatterns,
ServletSecurityElement servletSecurity) {
List<SecurityConstraint> securityConstraints = new Arra... | java |
private SecurityConstraint createSecurityConstraint(SecurityMetadata securityMetadataFromDD, List<WebResourceCollection> webResourceCollections,
HttpConstraintElement httpConstraint, boolean fromHttpConstraint) {
List<String> roles = createRoles(httpConstr... | java |
private boolean isSSLRequired(HttpConstraintElement httpConstraint) {
boolean sslRequired = false;
TransportGuarantee transportGuarantee = httpConstraint.getTransportGuarantee();
if (transportGuarantee != TransportGuarantee.NONE) {
sslRequired = true;
}
return sslRequ... | java |
private boolean isAccessPrecluded(HttpConstraintElement httpConstraint) {
boolean accessPrecluded = false;
String[] roles = httpConstraint.getRolesAllowed();
if (roles == null || roles.length == 0) {
if (EmptyRoleSemantic.DENY == httpConstraint.getEmptyRoleSemantic())
... | java |
private boolean isAccessUncovered(HttpConstraintElement httpConstraint) {
boolean accessUncovered = false;
String[] roles = httpConstraint.getRolesAllowed();
if (roles == null || roles.length == 0) {
if (EmptyRoleSemantic.PERMIT == httpConstraint.getEmptyRoleSemantic())
... | java |
private void setModuleSecurityMetaData(Container moduleContainer, SecurityMetadata securityMetadataFromDD) {
try {
WebModuleMetaData wmmd = moduleContainer.adapt(WebModuleMetaData.class);
wmmd.setSecurityMetaData(securityMetadataFromDD);
} catch (UnableToAdaptException e) {
... | java |
@Override
public void release()
{
_applicationFactory = null;
_currentFacesContext = null;
if (_defaultExternalContext != null)
{
_defaultExternalContext.release();
_defaultExternalContext = null;
}
_application = null;
_ex... | java |
private void findMarkers(String url, String target) {
final char[] data = url.toCharArray();
// we only care about the last path segment so find that first
int i = 0;
int lastSlash = 0;
for (; i < data.length; i++) {
if ('/' == data[i]) {
lastSlash = ... | java |
private void formLogout(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
try {
// if we have a valid custom logout page, set an attribute so SAML SLO knows about it.
String exitPage = getValidLogoutExitPage(req);
if (exitPage != null) {... | java |
private String getValidLogoutExitPage(HttpServletRequest req) {
boolean valid = false;
String exitPage = req.getParameter("logoutExitPage");
if (exitPage != null && exitPage.length() != 0) {
boolean logoutExitURLaccepted = verifyLogoutURL(req, exitPage);
if (logoutExitUR... | java |
private void useDefaultLogoutMsg(HttpServletResponse res) {
try {
PrintWriter pw = res.getWriter();
pw.println(DEFAULT_LOGOUT_MSG);
} catch (IOException e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, e.getMessage());... | java |
private boolean isRedirectHostTheSameAsLocalHost(String exitPage, String logoutURLhost, String hostFullName, String shortName, String ipAddress) {
String localHostIpAddress = "127.0.0.1";
boolean acceptURL = false;
if (logoutURLhost.equalsIgnoreCase("localhost") || logoutURLhost.equals(localHost... | java |
private boolean isRequestURLEqualsExitPageHost(HttpServletRequest req, String logoutURLhost) {
boolean acceptURL = false;
try {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "about to attempt matching the logout exit url with the domain of the ... | java |
public synchronized boolean makeExclusiveDependency(int depStreamID, int exclusiveParentStreamID) {
Node depNode = root.findNode(depStreamID);
Node exclusiveParentNode = root.findNode(exclusiveParentStreamID);
return makeExclusiveDependency(depNode, exclusiveParentNode);
} | java |
public synchronized boolean changeParent(int depStreamID, int newPriority, int newParentStreamID, boolean exclusive) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "changeParent entry: depStreamID: " + depStreamID + " newParentStreamID: " + newParentStreamID + " e... | java |
private void populateTopics(String[] topics) {
for (String t : topics) {
// Clean up leading and trailing white space as appropriate
t = t.trim();
// Ignore topics that start or end with a '/'
if (t.startsWith("/") || t.endsWith("/") || t.contains("//") || t.isEm... | java |
private void checkTopicSubscribePermission(String topic) {
SecurityManager sm = System.getSecurityManager();
if (sm == null)
return;
sm.checkPermission(new TopicPermission(topic, SUBSCRIBE));
} | java |
void fireEvent() {
boolean useLock = !isReentrant();
if (useLock) {
lock.lock();
}
EventImpl event = eventQueue.poll();
try {
if (event != null) {
fireEvent(event);
}
} finally {
if (useLock) {
... | java |
@Override
public Throwable getCause() {
if (exceptions != null && exceptions.size() > 0)
return (Throwable) exceptions.get(0);
else
return null;
} | java |
public void addBootJars(List<URL> urlList) {
addBootJars(cache.getJarFiles(kernelMf), urlList);
addBootJars(cache.getJarFiles(logProviderMf), urlList);
if (osExtensionMf != null)
addBootJars(cache.getJarFiles(osExtensionMf), urlList);
} | java |
private void addBootJars(List<File> jarFiles, List<URL> urlList) {
for (File jarFile : jarFiles) {
try {
urlList.add(jarFile.toURI().toURL());
} catch (MalformedURLException e) {
// Unlikely: we're making URLs for files we know exist
}
... | java |
public SIMessageHandle getMessageHandle() {
// If the transient is not set, build the handle from the values in the message and cache it.
if (cachedMessageHandle == null) {
byte[] b = (byte[]) jmo.getField(JsHdrAccess.SYSTEMMESSAGESOURCEUUID);
if (b != null) {
cac... | java |
final void setProducerType(ProducerType value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setProducerType", value);
/* Get the int value of the ProducerType and set that into the field */
getHdr2().setField(JsHdr2Access.PRODUCERTYPE, val... | java |
final void setJsMessageType(MessageType value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setJsMessageType", value);
/* Get the int value of the MessageType and set that into the field */
jmo.setField(JsHdrAccess.MESSAGETYPE, value.toByt... | java |
public final void setGuaranteedRemoteGetPrevTick(long value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setGuaranteedRemoteGetPrevTick", Long.valueOf(value));
getHdr2().setLongField(JsHdr2Access.GUARANTEEDREMOTEGET_SET_PREVTICK, value);
... | java |
final void setSubtype(Byte value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setSubtype", value);
jmo.setField(JsHdrAccess.SUBTYPE, value);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(this, tc,... | java |
void copyTransients(JsHdrsImpl copy) {
copy.cachedMessageWaitTime = cachedMessageWaitTime;
copy.cachedReliability = cachedReliability;
copy.cachedPriority = cachedPriority;
copy.cachedMessageHandle = cachedMessageHandle;
copy.flags = flags;
copy.gotFlags = gotFlags;
} | java |
synchronized final JsMsgPart getHdr2() {
if (hdr2 == null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
SibTr.debug(this, tc, "getHdr2 will call getPart");
hdr2 = jmo.getPart(JsHdrAccess.HDR2, JsHdr2Access.schema);
}
return hdr2;
... | java |
synchronized final JsMsgPart getApi() {
if (api == null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
SibTr.debug(this, tc, "getApi will call getPart");
api = jmo.getPart(JsHdrAccess.API_DATA, JsApiAccess.schema);
}
return api;
} | java |
synchronized final JsMsgPart getPayload(JMFSchema schema) {
if (payload == null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
SibTr.debug(this, tc, "getPayload will call getPart");
payload = jmo.getPayloadPart().getPart(JsPayloadAccess.PAYLOAD_DATA, ... | java |
synchronized final JsMsgPart getPayloadIfFluffed() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
if (payload == null)
SibTr.debug(this, tc, "getPayloadIfFluffed returning null");
}
return payload;
} | java |
@Override
synchronized final void clearPartCaches() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "clearPartCaches");
hdr2 = api = payload = null;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(th... | java |
private final void setFlagValue(byte flagBit, boolean value) {
if (value) {
flags = (byte) (getFlags() | flagBit);
}
else {
flags = (byte) (getFlags() & (~flagBit));
}
} | java |
public String getValue(FaceletContext ctx)
{
if ((this.capabilities & EL_LITERAL) != 0)
{
return this.value;
}
else
{
return (String) this.getObject(ctx, String.class);
}
} | java |
public Object getObject(FaceletContext ctx, Class type)
{
if ((this.capabilities & EL_LITERAL) != 0)
{
if (String.class.equals(type))
{
return this.value;
}
else
{
try
{
re... | java |
public ValueExpression getValueExpression(FaceletContext ctx, Class type)
{
AbstractFaceletContext actx = (AbstractFaceletContext) ctx;
//volatile reads are atomic, so take the tuple to later comparison.
Object[] localCachedExpression = cachedExpression;
if (actx.isAllowCach... | java |
protected String stripFileSeparateAtTheEnd(String path) {
return (path != null && (path.endsWith("/") || path.endsWith("\\") ) )
? path.substring(0, path.length()-1)
: path;
} | java |
protected void renderId(
FacesContext context,
UIComponent component) throws IOException
{
if (shouldRenderId(context, component))
{
String clientId = getClientId(context, component);
context.getResponseWriter().writeAttribute(HTML.ID_ATTR, clientId, JSFAttr.ID_ATTR);
... | java |
protected boolean shouldRenderId(
FacesContext context,
UIComponent component)
{
String id = component.getId();
// Otherwise, if ID isn't set, don't bother
if (id == null)
{
return false;
}
// ... or if the ID was generated, don't bother
if (id.star... | java |
static public String toUri(Object o)
{
if (o == null)
{
return null;
}
String uri = o.toString();
if (uri.startsWith("/"))
{
// Treat two slashes as server-relative
if (uri.startsWith("//"))
{
uri = uri.substring(1);
}
... | java |
public ValueExpression resolveVariable(String variable)
{
ValueExpression ve = null;
try
{
if (_vars != null)
{
ve = (ValueExpression) _vars.get(variable);
// Is this code in a block that wants to cache
// the resultin... | java |
@Override
public String[] introspectSelf() {
List<?> nameValuePairs = Arrays.asList(
BEGIN_TRAN_FOR_SCROLLING_APIS, beginTranForResultSetScrollingAPIs,
BEGIN_TRAN_FOR_VENDOR_APIS, beginTranForVendorAPIs,
... | java |
public final static ControlMessageType getControlMessageType(Byte aValue) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue);
return set[aValue.intValue()];
} | java |
public void updateDefinition(ForeignBusDefinition foreignBusDefinition)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "updateDefinition", foreignBusDefinition);
ForeignDestinationDefault newForeignDefault = null;
// If sendA... | java |
public void updateSendAllowed(boolean oldSendAllowed, boolean newSendAllowed)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc,
"updateSendAllowed",
new Object[] {Boolean.valueOf(oldSendAllowed), Boolean.valueOf(newSendAllowed)});
... | java |
public void updateVirtualLinkDefinition(VirtualLinkDefinition newVirtualLinkDefinition)
throws SIIncorrectCallException, SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc,
"updateVirtualLinkDefinition",
new Object[... | java |
public boolean checkDestinationAccess(
SecurityContext secContext,
OperationType operation)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"checkDestinationAccess",
new Object[] { secContext, operation });
boolean allow = false;
... | java |
@FFDCIgnore(NullPointerException.class)
private void addEventToRingBuffer(Object event) {
// Check again to see if the ringBuffer is null
if (ringBuffer != null) {
try {
ringBuffer.add(event);
} catch (NullPointerException npe) {
// Nothing to do! Perhaps a Trace?
}
}
} | java |
public synchronized void addSyncHandler(SynchronousHandler syncHandler) {
// Send messages from EMQ to synchronous handler when it subscribes to
// receive messages
if (earlyMessageQueue != null && earlyMessageQueue.size() != 0
&& !synchronousHandlerSet.contains(syncHandler)) {
for (Object message : earlyM... | java |
public synchronized void removeSyncHandler(SynchronousHandler syncHandler) {
Set<SynchronousHandler> synchronousHandlerSetCopy = new HashSet<SynchronousHandler>(synchronousHandlerSet);
synchronousHandlerSetCopy.remove(syncHandler);
Tr.event(tc, "Removed Synchronous Handler: " + syncHandler.getHandlerName());
sy... | java |
public synchronized void removeHandler(String handlerId) {
handlerEventMap.remove(handlerId);
Tr.event(tc, "Removed Asynchronous Handler: " + handlerId);
if (handlerEventMap.isEmpty()) {
ringBuffer = null;
Tr.event(tc, "ringBuffer for this BufferManagerImpl has now been set to null");
}
} | java |
public static EJBSerializer instance()
{
EJBSerializer theInstance;
synchronized (CLASS_NAME)
{
if (cvInstance == null)
{
try
{
cvInstance = (EJBSerializer) Class.forName(IMPL_CLASS_NAME).newInstance();
... | java |
public void initializeAppCounters(String appName) {
if (StatsFactory.isPMIEnabled()) {
synchronized(this) {
appPmi = new WebAppModule (appName, true); // @539186C
appPmiState = APP_PMI_WEB; // @539186A
}
}
} | java |
protected List<AuthorizationValue> transform(List<AuthorizationValue> input) {
if (input == null) {
return null;
}
List<AuthorizationValue> output = new ArrayList<>();
for (AuthorizationValue value : input) {
AuthorizationValue v = new AuthorizationValue();
... | java |
static <T> T ensureNotNull(String msg, T t) throws ClassLoadingConfigurationException {
ensure(msg, t != null);
return t;
} | java |
static <T> String join(Iterable<T> elems, String delim) {
if (elems == null)
return "";
StringBuilder result = new StringBuilder();
for (T elem : elems)
result.append(elem).append(delim);
if (result.length() > 0)
result.setLength(result.length() - deli... | java |
static <T> Enumeration<T> compose(Enumeration<T> e1, Enumeration<T> e2) {
// return the composite of e1 and e2, or whichever is non-empty
return isEmpty(e1) ? e2
: isEmpty(e2) ? e1
: new CompositeEnumeration<T>(e1).add(e2);
} | java |
public synchronized void add(int requestId, ReceiveListener rl, SendListener s)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "add", new Object[] {""+requestId, rl, s});
if (containsId(requestId))
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDeb... | java |
public synchronized SendListener getSendListener(int requestId)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSendListener", ""+requestId);
if (!containsId(requestId))
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) debugTrac... | java |
public synchronized ReceiveListener getListener(int requestId)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getListener", ""+requestId);
if (!containsId(requestId))
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) debugTraceTable("... | java |
public synchronized boolean containsId(int requestId)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "containsId", ""+requestId);
testReqIdTableEntry.requestId = requestId;
boolean result = table.containsKey(testReqIdTableEntry);
if (TraceComponent.isAnyTr... | java |
public synchronized Iterator receiveListenerIterator()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "receiveListenerIterator");
final LinkedList<ReceiveListener>linkedList = new LinkedList<ReceiveListener>();
final Iterator iterator = table.values().iterator... | java |
public synchronized Iterator sendListenerIterator()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "sendListenerIterator");
final LinkedList<SendListener> linkedList = new LinkedList<SendListener>();
final Iterator iterator = table.values().iterator();
while(iter... | java |
protected List<String> getFileLocationsFromSubsystemContent(String subsystemContent) {
String sc = subsystemContent + ",";
List<String> files = new ArrayList<String>();
boolean isFile = false;
String location = null;
int strLen = sc.length();
boolean quoted = false;
... | java |
protected String getValue(String str) {
int index = str.indexOf('=');
String value = null;
if (index > 0) {
value = str.substring(index + 1).trim();
if (value.charAt(0) == '\"') {
value = value.substring(1, value.length() - 1);
}
}
... | java |
protected String getFeatureSymbolicName(Attributes attrs) {
String output = null;
if (attrs != null) {
// get Subsystem-SymbolicName
String value = attrs.getValue(HDR_SUB_SYM_NAME);
if (value != null) {
String[] parts = value.split(";");
... | java |
protected String getFeatureName(Attributes attrs) {
String output = null;
if (attrs != null) {
// get IBM-ShortName first,
String value = attrs.getValue(HDR_SUB_SHORT_NAME);
if (value != null) {
output = value.trim();
} else {
... | java |
protected String getLocalizedString(File featureManifest, String value) {
if (value != null && value.startsWith("%")) {
ResourceBundle res = CustomUtils.getResourceBundle(new File(featureManifest.getParentFile(), "l10n"), featureSymbolicName, Locale.getDefault());
if (res != null) {
... | java |
public ManagedObject injectAndPostConstruct(final Object target) throws InjectionException
{
final String METHOD_NAME="injectAndPostConstruct";
if (TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) {
logger.entering(CLASS_NAME, METHOD_NAME, target);
}
... | java |
@FFDCIgnore(IOException.class)
public static Map<String, Object> parseExtensions(Extension[] extensions) {
final Map<String, Object> map = new HashMap<String, Object>();
for (Extension extension : extensions) {
final String name = extension.name();
final String key = name.len... | java |
protected String add_escapes(String str) {
StringBuffer retval = new StringBuffer();
char ch;
for (int i = 0; i < str.length(); i++) {
switch (str.charAt(i))
{
case 0 :
continue;
case '\b':
retval.append("\\b");
continue;
... | java |
public void checkWritePermission(TimedDirContext ctx) throws OperationNotSupportedException {
if (!iWriteToSecondary) {
String providerURL = getProviderURL(ctx);
if (!getPrimaryURL().equalsIgnoreCase(providerURL)) {
String msg = Tr.formatMessage(tc, WIMMessageKey.WRITE_TO... | java |
@FFDCIgnore(NamingException.class)
private void closeContextPool(List<TimedDirContext> contexts) {
final String METHODNAME = "closeContextPool";
if (contexts != null) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, METHODNAME + " Context pool being closed by " + Thread.currentT... | java |
private void createContextPool(Integer poolSize, String providerURL) throws NamingException {
final String METHODNAME = "createContextPool";
/*
* Validate provider URL
*/
if (providerURL == null) {
providerURL = getPrimaryURL();
}
/*
* Def... | java |
public DirContext createSubcontext(String name,
Attributes attrs) throws OperationNotSupportedException, WIMSystemException, EntityAlreadyExistsException, EntityNotFoundException {
final String METHODNAME = "createSubcontext";
DirContext dirContext = null;
... | java |
public void destroySubcontext(String name) throws EntityHasDescendantsException, EntityNotFoundException, WIMSystemException {
TimedDirContext ctx = getDirContext();
// checkWritePermission(ctx); // TODO Why are we not checking permissions here?
try {
try {
ctx.destro... | java |
private static String formatIPv6Addr(String host) {
if (host == null) {
return null;
} else {
return (new StringBuilder()).append("[").append(host).append("]").toString();
}
} | java |
@SuppressWarnings("unchecked")
private Hashtable<String, Object> getEnvironment(int type, String startingURL) {
Hashtable<String, Object> env = new Hashtable<String, Object>(iEnvironment);
List<String> urlList = (List<String>) env.remove(ENVKEY_URL_LIST);
int numURLs = urlList.size();
... | java |
@SuppressWarnings("unchecked")
@Trivial
private List<String> getEnvURLList() {
return (List<String>) iEnvironment.get(ENVKEY_URL_LIST);
} | java |
@Trivial
private String getNextURL(String currentURL) {
List<String> urlList = getEnvURLList();
int urlIndex = getURLIndex(currentURL, urlList);
return urlList.get((urlIndex + 1) % urlList.size());
} | java |
@Trivial
@FFDCIgnore(NamingException.class)
private String getProviderURL(TimedDirContext ctx) {
try {
return (String) ctx.getEnvironment().get(Context.PROVIDER_URL);
} catch (NamingException e) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "getProviderURL", e... | java |
private int getURLIndex(String url, List<String> urlList) {
int urlIndex = 0;
int numURLs = urlList.size();
// get URL index
if (url != null)
for (int i = 0; i < numURLs; i++)
if ((urlList.get(i)).equalsIgnoreCase(url)) {
urlIndex = i;
... | java |
private void handleBindStat(long elapsedTime) {
String METHODNAME = "handleBindStat(long)";
if (elapsedTime < LDAP_CONNECT_TIMEOUT_TRACE) {
QUICK_LDAP_BIND.getAndIncrement();
}
long now = System.currentTimeMillis();
/*
* Print out at most every 30 minutes t... | java |
private static boolean isIPv6Addr(String host) {
if (host != null) {
if (host.contains("[") && host.contains("]"))
host = host.substring(host.indexOf("[") + 1, host.indexOf("]"));
host = host.toLowerCase();
Pattern p1 = Pattern.compile("^(?:(?:(?:(?:[a-f0-9]{1... | java |
public TimedDirContext reCreateDirContext(TimedDirContext oldCtx, String errorMessage) throws WIMSystemException {
final String METHODNAME = "DirContext reCreateDirContext(String errorMessage)";
if (tc.isDebugEnabled()) {
Tr.debug(tc, METHODNAME + " Communication exception occurs: " + errorM... | java |
@FFDCIgnore(NamingException.class)
public void releaseDirContext(TimedDirContext ctx) throws WIMSystemException {
final String METHODNAME = "releaseDirContext";
if (iContextPoolEnabled) {
//Get the lock for the current domain
synchronized (iLock) {
// If the ... | java |
public void getTraceSummaryLine(StringBuilder buff) {
// Need to trim the control message name, as many contain space padding
buff.append(getControlMessageType().toString().trim());
// Display the bit flags in hex form
buff.append(":flags=0x");
buff.append(Integer.toHexString(getFlags() & 0xff));
... | java |
protected static void appendArray(StringBuilder buff, String name, String[] values) {
buff.append(',');
buff.append(name);
buff.append("=[");
if (values != null) {
for (int i = 0; i < values.length; i++) {
if (i != 0) buff.append(',');
buff.append(values[i]);
}
}
buff... | java |
public void init(InputStream in) throws IOException
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"init", "init");
}
this.in = in;
next();
obs=null;
} | java |
public void next()
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"next", "next");
}
length = -1;
limit = Long.MAX_VALUE; // PM03146
total = 0;
count = 0;
pos = 0;
... | java |
public void finish() throws IOException
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"finish", "finish");
}
// PM18453 start
WebContainerRequestState requestState = WebContainerRequestState... | java |
public void resets()
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"resets", "resets");
}
this.in = null;
} | java |
public void setContentLength(long len)
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"setContentLength", "setContentLength --> "+len);
}
if ( len < 0 )
{
logger.logp(Level.SEVERE,... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.