code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public WsByteBuffer allocateBuffer(int size) {
WsByteBufferPoolManager mgr = HttpDispatcher.getBufferManager();
WsByteBuffer wsbb = (this.useDirectBuffer) ? mgr.allocateDirect(size) : mgr.allocate(size);
addToCreatedBuffer(wsbb);
return wsbb;
} | java |
@Override
public void setDebugContext(Object o) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "debugContext set to " + o + " for " + this);
}
if (null != o) {
this.debugContext = o;
}
} | java |
private void incrementHeaderCounter() {
this.numberOfHeaders++;
this.headerAddCount++;
if (this.limitNumHeaders < this.numberOfHeaders) {
String msg = "Too many headers in storage: " + this.numberOfHeaders;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) ... | java |
private void checkHeaderValue(byte[] data, int offset, int length) {
// if the last character is a CR or LF, then this fails
int index = (offset + length) - 1;
if (index < 0) {
// empty data, quit now with success
return;
}
String error = null;
if ... | java |
private void checkHeaderValue(String data) {
// if the last character is a CR or LF, then this fails
int index = data.length() - 1;
if (index < 0) {
// empty string, quit now with success
return;
}
String error = null;
char c = data.charAt(index);
... | java |
private int countInstances(HeaderElement root) {
int count = 0;
HeaderElement elem = root;
while (null != elem) {
if (!elem.wasRemoved()) {
count++;
}
elem = elem.nextInstance;
}
return count;
} | java |
private boolean skipWhiteSpace(WsByteBuffer buff) {
// keep reading until we hit the end of the buffer or a non-space char
byte b;
do {
if (this.bytePosition >= this.byteLimit) {
if (!fillByteCache(buff)) {
// not filled
return ... | java |
private boolean addInstanceOfElement(HeaderElement root, HeaderElement elem) {
// first add to the overall sequence list
if (null == this.hdrSequence) {
this.hdrSequence = elem;
this.lastHdrInSequence = elem;
} else {
// find the end of the list and append thi... | java |
protected WsByteBuffer[] putInt(int data, WsByteBuffer[] buffers) {
return putBytes(GenericUtils.asBytes(data), buffers);
} | java |
protected WsByteBuffer[] flushCache(WsByteBuffer[] buffers) {
// PK13351 - use the offset/length version to write only what we need
// to and avoid the extra memory allocation
int pos = this.bytePosition;
if (0 == pos) {
// nothing to write
return buffers;
... | java |
final protected void decrementBytePositionIgnoringLFs() {
// PK15898 - added for just LF after first line
this.bytePosition--;
if (BNFHeaders.LF == this.byteCache[this.bytePosition]) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "de... | java |
final protected void resetCacheToken(int len) {
if (null == this.parsedToken || len != this.parsedToken.length) {
this.parsedToken = new byte[len];
}
this.parsedTokenLength = 0;
} | java |
final protected boolean fillCacheToken(WsByteBuffer buff) {
// figure out how much we have left to copy out, append to any existing
// parsed token (multiple passes through here).
int curr_len = this.parsedTokenLength;
int need_len = this.parsedToken.length - curr_len;
int copy_l... | java |
protected boolean fillByteCache(WsByteBuffer buff) {
if (this.bytePosition < this.byteLimit) {
return false;
}
int size = buff.remaining();
if (size > this.byteCacheSize) {
// truncate to just fill up the cache
size = this.byteCacheSize;
}
... | java |
protected TokenCodes findCRLFTokenLength(WsByteBuffer buff) throws MalformedMessageException {
TokenCodes rc = TokenCodes.TOKEN_RC_MOREDATA;
if (null == buff) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Null buffer provided");
... | java |
protected TokenCodes skipCRLFs(WsByteBuffer buffer) {
int maxCRLFs = 33;
// limit is the max number of CRLFs to skip
if (this.bytePosition >= this.byteLimit) {
if (!fillByteCache(buffer)) {
// no more data
return TokenCodes.TOKEN_RC_MOREDATA;
... | java |
protected TokenCodes findHeaderLength(WsByteBuffer buff) throws MalformedMessageException {
TokenCodes rc = TokenCodes.TOKEN_RC_MOREDATA;
if (null == buff) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "findHeaderLength: null buffer provi... | java |
private boolean parseHeaderName(WsByteBuffer buff) throws MalformedMessageException {
// if we're just starting, then skip leading white space characters
// otherwise ignore them (i.e we might be in the middle of
// "Mozilla/5.0 (Win"
if (null == this.parsedToken) {
if (!ski... | java |
private boolean parseHeaderValueExtract(WsByteBuffer buff) throws MalformedMessageException {
// 295178 - don't log sensitive information
// log value contents based on the header key (if known)
int log = LOG_FULL;
HeaderKeys key = this.currentElem.getKey();
if (null != key && !... | java |
protected int parseTokenNonExtract(WsByteBuffer buff, byte bDelimiter, boolean bApproveCRLF) throws MalformedMessageException {
TokenCodes rc = findTokenLength(buff, bDelimiter, bApproveCRLF);
return (TokenCodes.TOKEN_RC_MOREDATA.equals(rc)) ? -1 : this.parsedTokenLength;
} | java |
private void saveParsedToken(WsByteBuffer buff, int start, boolean delim, int log) {
final boolean bTrace = TraceComponent.isAnyTracingEnabled();
// local copy of the length
int length = this.parsedTokenLength;
this.parsedTokenLength = 0;
if (0 > length) {
throw new ... | java |
public void parsedCompactHeader(boolean flag) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "parsedCompactHeader: " + flag);
}
this.compactHeaderFlag = flag;
} | java |
void finishAlarmThread()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "finishAlarmThread");
//wake up the thread so that it will exit it's main loop and end
synchronized(wakeupLock)
{
//flag this alarm thread as finished
finished = true;
... | java |
public void run()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "run");
try
{
//loop until finished
while(!finished)
{
//what time is it now
long now = System.currentTimeMillis();
boolean fire = false;
//synchr... | java |
public boolean startInactivityTimer() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "startInactivityTimer");
if (_inactivityTimeout > 0
&& _status.getState() == TransactionState.STATE_ACTIVE
... | java |
public void rollbackResources() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "rollbackResources");
try {
final Transaction t = ((EmbeddableTranManagerSet) TransactionManagerFactory.getTransactionManager... | java |
public synchronized void stopInactivityTimer() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "stopInactivityTimer");
if (_inactivityTimerActive) {
_inactivityTimerActive = false;
EmbeddableTi... | java |
@Override
public void resumeAssociation() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "resumeAssociation");
resumeAssociation(true);
if (traceOn && tc.isEntryEnabled())
Tr.exit(tc, "resume... | java |
public synchronized void resumeAssociation(boolean allowSetRollback) throws TRANSACTION_ROLLEDBACK {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "resumeAssociation", allowSetRollback);
// if another thread is active... | java |
@Override
public synchronized void addAssociation() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "addAssociation");
if (_activeAssociations > _suspendedAssociations) {
if (traceOn && tc.isDebugEnabl... | java |
@Override
public synchronized void removeAssociation() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "removeAssociation");
_activeAssociations--;
if (_activeAssociations <= 0) {
startInactiv... | java |
@Override
public void enlistAsyncResource(String xaResFactoryFilter, Serializable xaResInfo, Xid xid) throws SystemException // @LIDB1922-5C
{
if (tc.isEntryEnabled())
Tr.entry(tc, "enlistAsyncResource (SPI): args: ", new Object[] { xaResFactoryFilter, xaResInfo, xid });
try {
... | java |
public synchronized void inactivityTimeout() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "inactivityTimeout", this);
_inactivityTimerActive = false;
if (_inactivityTimer != null) {
try {
... | java |
synchronized ConsumerSessionImpl get(long id)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "get", new Long(id));
ConsumerSessionImpl consumer = null ;
if( _messageProcessor.isStarted() )
{
consumer = (ConsumerSessionImpl) _consumers.get(new Long(id));
}
if (tc.isEntryEnabled(... | java |
synchronized void add(ConsumerSessionImpl consumer)
{
consumer.setId(_consumerCount);
if (tc.isEntryEnabled())
SibTr.entry(tc, "add", new Long(consumer.getIdInternal()) );
_consumers.put(new Long(_consumerCount), consumer);
_consumerCount++;
if (tc.isEntryEnabled())
SibTr.exit(... | java |
private static Collection<String> getFromAppliesTo(final Asset asset, final AppliesToFilterGetter getter) {
Collection<AppliesToFilterInfo> atfis = asset.getWlpInformation().getAppliesToFilterInfo();
Collection<String> ret = new ArrayList<String>();
if (atfis != null) {
for (AppliesT... | java |
@Activate
protected void activate(ComponentContext ctx, Map<String, Object> properties) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "activate", properties);
}
if(isEnabled()) {
loadMaps(properties);
} else {
... | java |
private void updateCacheState(Map<String, Object> props) {
getAuthenticationConfig(props);
if (cacheEnabled) {
authCacheServiceRef.activate(cc);
} else {
authCacheServiceRef.deactivate(cc);
}
} | java |
private ReentrantLock optionallyObtainLockedLock(AuthenticationData authenticationData) {
ReentrantLock currentLock = null;
if (isAuthCacheServiceAvailable()) {
currentLock = authenticationGuard.requestAccess(authenticationData);
currentLock.lock();
}
return curre... | java |
@Override
public Subject delegate(String roleName, String appName) {
Subject runAsSubject = getRunAsSubjectFromProvider(roleName, appName);
return runAsSubject;
} | java |
static private StringBuilder determineType(String name, Object o) {
String value = null;
if (o instanceof String || o instanceof StringBuffer || o instanceof java.nio.CharBuffer || o instanceof Integer || o instanceof Long || o instanceof Byte
|| o instanceof Double || o instanceof Float || ... | java |
static private StringBuilder serializeChannel(StringBuilder buffer, OutboundChannelDefinition ocd, int order) throws NotSerializableException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Serializing channel: " + order + " " + ocd.getOutboundFactory().getName());... | java |
static public String serialize(CFEndPoint point) throws NotSerializableException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "serialize");
}
if (null == point) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | java |
public MessageStore getOwningMessageStore()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "getOwningMessageStore");
SibTr.exit(this, tc, "getOwningMessageStore", "return="+_ms);
}
return _ms;
} | java |
protected void createRealizationAndState(
MessageProcessor messageProcessor,
TransactionCommon transaction)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled... | java |
protected void reconstitute(
MessageProcessor processor,
HashMap<String, Object> durableSubscriptionsTable,
int startMode) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnable... | java |
public void deleteMsgsWithNoReferences() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "deleteMsgsWithNoReferences");
if (null != _pubSubRealization) //doing a sanity check with checking for not null
_pubSubRealization.deleteMsgsWithNoReferen... | java |
public final synchronized AnycastOutputHandler getAnycastOutputHandler()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getAnycastOutputHandler");
AnycastOutputHandler aoh = null;
if (_ptoPRealization != null)
aoh = _ptoPRealizati... | java |
public Object[] getPostReconstitutePseudoIds()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getPostReconstitutePseudoIds");
Object[] result = _protoRealization.
getRemoteSupport().
getPostReconstitute... | java |
protected void addPubSubLocalisation(
LocalizationDefinition destinationLocalizationDefinition)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addPubSubLocalisation",
new Object[] {
... | java |
public void setRemote(boolean hasRemote)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setRemote", Boolean.valueOf(hasRemote));
getLocalisationManager().setRemote(hasRemote);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java |
public void setLocal()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setLocal");
getLocalisationManager().setLocal();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "setLocal");
} | java |
public boolean isToBeIgnored()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "isToBeIgnored");
SibTr.exit(tc, "isToBeIgnored", Boolean.valueOf(_toBeIgnored));
}
return _toBeIgnored;
} | java |
PtoPXmitMsgsItemStream getXmitQueuePoint(SIBUuid8 meUuid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getXmitQueuePoint", meUuid);
PtoPXmitMsgsItemStream stream = getLocalisationManager().getXmitQueuePoint(meUuid);
if (TraceComponent.isAn... | java |
private void eventMessageExpiryNotification(
SIMPMessage msg,
TransactionCommon tran) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
... | java |
public String constructPseudoDurableDestName(String subName)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "constructPseudoDurableDestName", subName);
String psuedoDestName = constructPseudoDurableDestName(
... | java |
public String constructPseudoDurableDestName(String meUUID, String durableName)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "constructPseudoDurableDestName", new Object[] { meUUID, durableName });
String returnString = meUUID + "##" + durableName;
... | java |
public AnycastOutputHandler getAnycastOHForPseudoDest(String destName)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getAnycastOHForPseudoDest", destName);
AnycastOutputHandler returnAOH =
_pubSubRealization.
... | java |
void sendCODMessage(SIMPMessage msg, TransactionCommon tran) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "sendCODMessage", new Object[] { msg, tran });
// If COD Report messages are required, this is when we need to creat... | java |
@Override
public void announceMPStopping()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "announceMPStopping");
if (isPubSub()) {
if (null != _pubSubRealization) { //doing a sanity check with checking for not null
//si... | java |
@Override
public void stop(int mode)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "stop", Integer.valueOf(mode));
// Deregister the destination
deregisterDestination();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabl... | java |
public int createDurableFromRemote(
String subName,
SelectionCriteria criteria,
String user,
boolean isCloned,
boolean isNoLo... | java |
@Override
public JsDestinationAddress getRoutingDestinationAddr(JsDestinationAddress inAddress,
boolean fixedMessagePoint)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java |
public void deleteRemoteDurableDME(String subName)
throws SIRollbackException,
SIConnectionLostException,
SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
... | java |
public void requestReallocation()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "requestReallocation");
if (!isCorruptOrIndoubt()) { //PK73754
// Reset reallocation flag under lock on the BDH.
synchronized (this)
... | java |
@Override
public boolean isTopicAccessCheckRequired()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isTopicAccessCheckRequired");
if (!isPubSub() || isTemporary())
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabl... | java |
public boolean removeAnycastInputHandlerAndRCD(String key) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeAnycastInputHandlerAndRCD", key);
boolean removed = _protoRealization.
getRemoteSupport... | java |
public void closeRemoteConsumer(SIBUuid8 dmeUuid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "closeRemoteConsumer", dmeUuid);
_protoRealization.
getRemoteSupport().
closeRemoteConsumers(dmeUuid);
... | java |
public PubSubRealization getPubSubRealization()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getPubSubRealization");
SibTr.exit(tc, "getPubSubRealization", _pubSubRealization);
}
return _pubSubRealization;
} | java |
public PtoPRealization getPtoPRealization()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getPtoPRealization");
SibTr.exit(tc, "getPtoPRealization", _ptoPRealization);
}
return _ptoPRealization;
} | java |
public AbstractProtoRealization getProtocolRealization()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getProtocolRealization");
SibTr.exit(tc, "getProtocolRealization", _protoRealization);
}
return _protoRealization;
... | java |
public LocalisationManager getLocalisationManager()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getLocalisationManager", this);
// Instantiate LocalisationManager to manage localisations and interface to WLM
if (_localisationManager == nul... | java |
protected void setByteArrayValue(byte[] input) {
this.sValue = null;
this.bValue = input;
this.offset = 0;
this.valueLength = input.length;
if (ELEM_ADDED != this.status) {
this.status = ELEM_CHANGED;
}
} | java |
protected void setByteArrayValue(byte[] input, int offset, int length) {
if ((offset + length) > input.length) {
throw new IllegalArgumentException(
"Invalid length: " + offset + "+" + length + " > " + input.length);
}
this.sValue = null;
this.bVal... | java |
protected void setStringValue(String input) {
this.bValue = null;
this.sValue = input;
this.offset = 0;
this.valueLength = (null == input) ? 0 : input.length();
if (ELEM_ADDED != this.status) {
this.status = ELEM_CHANGED;
}
} | java |
protected void updateLastCRLFInfo(int index, int pos, boolean isCR) {
this.lastCRLFBufferIndex = index;
this.lastCRLFPosition = pos;
this.lastCRLFisCR = isCR;
} | java |
protected void destroy() {
this.nextSequence = null;
this.prevSequence = null;
this.bValue = null;
this.sValue = null;
this.buffIndex = -1;
this.offset = 0;
this.valueLength = 0;
this.myHashCode = -1;
this.lastCRLFBufferIndex = -1;
this.las... | java |
public Properties getHeader(RepositoryLogRecord record) {
if (!headerMap.containsKey(record)) {
throw new IllegalArgumentException("Record was not return by an iterator over this instance");
}
return headerMap.get(record);
} | java |
@Trivial
public static URL createWSJPAURL(URL url) throws MalformedURLException {
if (url == null) {
return null;
}
// Encode the URL to be embedded into the wsjpa URL's path
final String encodedURLPathStr = encode(url.toExternalForm());
URL returnURL;
t... | java |
@Trivial
public static URL extractEmbeddedURL(URL url) throws MalformedURLException {
if (url == null) {
return null;
}
if (!url.getProtocol().equalsIgnoreCase(WSJPA_PROTOCOL_NAME)) {
throw new IllegalArgumentException("The specified URL \"" + url +
... | java |
@Trivial
private static String encode(String s) {
if (s == null) {
return null;
}
// Throw an IllegalArgumentException if "%21" is already present in the String
if (s.contains("%21")) {
throw new IllegalArgumentException("WSJPAURLUtils.encode() cannot encode ... | java |
@Trivial
private static String decode(String s) {
if (s == null) {
return null;
}
return s.replace("%21", "!");
} | java |
@Override
public ValidationMode getValidationMode()
{
// Convert this ValidationMode from the class defined
// in JAXB (com.ibm.ws.jpa.pxml20.PersistenceUnitValidationModeType)
// to JPA (javax.persistence.ValidationMode).
ValidationMode rtnMode = null;
PersistenceUnitV... | java |
public static void setServiceProviderFinder(ExternalContext ectx, ServiceProviderFinder slp)
{
ectx.getApplicationMap().put(SERVICE_PROVIDER_KEY, slp);
} | java |
private static ServiceProviderFinder _getServiceProviderFinderFromInitParam(ExternalContext context)
{
String initializerClassName = context.getInitParameter(SERVICE_PROVIDER_FINDER_PARAM);
if (initializerClassName != null)
{
try
{
// get Class object
... | java |
public void psSetBytes(PreparedStatement pstmtImpl, int i, byte[] x) throws SQLException {
pstmtImpl.setBytes(i, x);
} | java |
public void psSetString(PreparedStatement pstmtImpl, int i, String x) throws SQLException {
pstmtImpl.setString(i, x);
} | java |
public void resetClientInformation(WSRdbManagedConnectionImpl mc) throws SQLException {
if (mc.mcf.jdbcDriverSpecVersion >= 40 && (mc.clientInfoExplicitlySet || mc.clientInfoImplicitlySet)) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(this, tc, "resetCl... | java |
public ConnectionResults getPooledConnection(final CommonDataSource ds, String userName, String password, final boolean is2Phase,
final WSConnectionRequestInfoImpl cri, boolean useKerberos, Object gssCredential) throws ResourceException {
if (tc.isEntryEnabled()... | java |
public void setClientRerouteData(Object dataSource, String cRJNDIName, String cRAlternateServer, String cRAlternatePort,
String cRPrimeServer, String cRPrimePort, Context jndiContext, String driverType) throws Throwable // add driverType
{
if (tc.isDebugEnabled()) {
... | java |
public boolean isAnAuthorizationException(SQLException x) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "isAnAuthorizationException", x);
boolean isAuthError = false;
LinkedList<SQLException> stack ... | java |
public void reuseKerbrosConnection(Connection sqlConn, GSSCredential gssCred, Properties props) throws SQLException {
// an exception would have been thrown earlier than this point, so adding the trace just in case.
if (tc.isDebugEnabled()) {
Tr.debug(this, tc, "Kerberos reuse is not support... | java |
public int branchCouplingSupported(int couplingType)
{
// Return -1 as we have no support for resref branch coupling
if (couplingType == ResourceRefInfo.BRANCH_COUPLING_LOOSE || couplingType == ResourceRefInfo.BRANCH_COUPLING_TIGHT)
{
if (tc.isDebugEnabled()) {
... | java |
public boolean loadClasses() {
Boolean result = AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
@Override
public Boolean run() {
Policy policy = jaccProviderService.getService().getPolicy();
if (tc.isDebugEnabled())
Tr.... | java |
private static String getResourceLookup(Resource resource) // F743-16274.1
{
if (svResourceLookupMethod == null)
{
return "";
}
try
{
return (String) svResourceLookupMethod.invoke(resource, (Object[]) null);
} catch (Exception ex)
{
... | java |
private void setXMLType(String typeName, String element, String nameElement, String typeElement) // F743-32443
throws InjectionConfigurationException
{
if (ivNameSpaceConfig.getClassLoader() == null)
{
setInjectionClassTypeName(typeName);
}
else
{
... | java |
private boolean isEnvEntryTypeCompatible(Object newType) // F743-32443
{
Class<?> curType = getInjectionClassType();
if (curType == null)
{
return true;
}
return isClassesCompatible((Class<?>) newType, getInjectionClassType());
} | java |
public void setEnvEntryType(ResourceImpl annotation, Object type) // F743-32443
throws InjectionException
{
if (type instanceof String)
{
setInjectionClassTypeName((String) type);
}
else
{
Class<?> classType = (Class<?>) type;
annotatio... | java |
private boolean isEnvEntryType(Class<?> resolverType) // F743-32443
{
Class<?> injectType = getInjectionClassType();
return injectType == null ? resolverType.getName().equals(getInjectionClassTypeName())
: resolverType == injectType;
} | java |
@Override
public List<Asset> getAllAssets() throws IOException, RequestFailureException {
HttpURLConnection connection = createHttpURLConnectionToMassive("/assets");
connection.setRequestMethod("GET");
testResponseCode(connection);
return JSONAssetConverter.readValues(connection.getI... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.