code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
static Class<?> getTypeFromMember(Member member) throws InjectionException {
Class<?> memberType = null;
if (member instanceof Field) {
memberType = ((Field) member).getType();
} else if (member instanceof Method) {
Method method = (Method) member;
if (method.... | java |
public static void sendExceptionToClient(Throwable throwable, String probeId,
Conversation conversation, int requestNumber) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "sendExceptionToClient",
... | java |
public static void sendAsyncExceptionToClient(Throwable throwable,
String probeId, short clientSessionId,
Conversation conversation, int requestNumber) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnab... | java |
public static void sendSessionCreateResponse(int segmentType, int requestNumber,
Conversation conversation, short sessionId,
DestinationSession session,
SIDestinationAddress... | java |
private static JavaDumper createInstance() {
try {
// Try to find IBM Java dumper class.
Class<?> dumpClass = Class.forName("com.ibm.jvm.Dump");
try {
// Try to find the IBM Java 7.1 dump methods.
Class<?>[] paramTypes = new Class<?>[] { String... | java |
private Map<String, String> filterProps(Map<String, Object> props) {
HashMap<String, String> filteredProps = new HashMap<>();
Iterator<String> it = props.keySet().iterator();
boolean debug = tc.isDebugEnabled() && TraceComponent.isAnyTracingEnabled();
while (it.hasNext()) {
... | java |
private String validateAuthn(String value) {
// for now, if we got here we're validating an authnToken
String result = null;
String valueLower = value.toLowerCase();
do {
if (valueLower.equals("saml")) {
result = JAXRSClientConstants.SAML_HANDLER;
... | java |
private String getURI(Map<String, Object> props) {
if (props == null)
return null;
if (props.keySet().contains(URI)) {
return (props.get(URI).toString());
} else {
return null;
}
} | java |
private static XMLInputFactory getXMLInputFactory() {
if (SAFE_INPUT_FACTORY != null) {
return SAFE_INPUT_FACTORY;
}
XMLInputFactory f = NS_AWARE_INPUT_FACTORY_POOL.poll();
if (f == null) {
f = createXMLInputFactory(true);
}
return f;
} | java |
public static void copy(XMLStreamReader reader, XMLStreamWriter writer) throws XMLStreamException {
copy(reader, writer, false, false);
} | java |
public static QName readQName(XMLStreamReader reader) throws XMLStreamException {
String value = reader.getElementText();
if (value == null) {
return null;
}
value = value.trim();
int index = value.indexOf(":");
if (index == -1) {
return new QNam... | java |
public boolean addReference(ServiceReference<T> reference) {
if (reference == null)
return false;
ConcurrentServiceReferenceElement<T> element = new ConcurrentServiceReferenceElement<T>(referenceName, reference);
synchronized (elementMap) {
ConcurrentServiceReferenceEle... | java |
public boolean removeReference(ServiceReference<T> reference) {
synchronized (elementMap) {
ConcurrentServiceReferenceElement<T> element = elementMap.remove(reference);
if (element == null) {
return false;
}
elementSet.remove(element);
... | java |
private Iterator<ConcurrentServiceReferenceElement<T>> elements() {
Collection<ConcurrentServiceReferenceElement<T>> set;
synchronized (elementMap) {
if (elementSetUnsorted) {
elementSet = new ConcurrentSkipListSet<ConcurrentServiceReferenceElement<T>>(elementMap.values());
... | java |
public void setChannelData(ChannelData data) throws ChannelException {
this.channelData = data;
setValues(data.getPropertyBag());
if (tc.isDebugEnabled())
outputConfigToTrace();
} | java |
public void setChannelReceiveBufferSize(int size) {
this.channelReceiveBufferSize = size;
if (size < 0 || size > UDPConfigConstants.MAX_UDP_PACKET_SIZE) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "Channel Receive buffer size not within Limits: " + size + " setting to default: ... | java |
public void addSICoreConnection(SICoreConnection conn, Conversation conversation) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addSICoreConnection");
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
SibTr.debug(tc, "Params... | java |
@Override
public void asynchronousException(ConsumerSession session, Throwable e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "asynchronousException",
new Object[]
{
session,
... | java |
@Override
public void meTerminated(SICoreConnection conn) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "meTerminated");
//Remember the fact that the ME has terminated so we don't issue spurious FFDCs
final Conversation conversation = convers... | java |
@Override
public void commsFailure(SICoreConnection conn, SIConnectionLostException e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "commsFailure",
new Object[]
{
conn,
... | java |
public String getRequestURL()
{
HttpServletRequest httpReq = getRequest();
if (httpReq==null)
return null;
else
return httpReq.getRequestURL().toString();
} | java |
public HttpServletRequest getRequest()
{
// moved as part of LIDB-3598 to ServletUtil
/*
ServletRequest r = _req;
while (!(r instanceof HttpServletRequest))
{
if (r instanceof ServletRequestWrapper)
{
r = ((ServletRequestWrapper... | java |
public HttpServletResponse getResponse()
{
// moved as part of LIDB-3598 to ServletUtil
/*
ServletResponse r = _resp;
while (!(r instanceof HttpServletResponse))
{
if (r instanceof ServletResponseWrapper)
{
r = ((ServletResponseWrapper) r).... | java |
public boolean isAvailableInPlatform(String p) {
if (this.platform.equals(PLATFORM_ALL))
return true;
else
return (this.platform.equals(p));
} | java |
protected byte[] loadClassDataFromFile(String fileName) {
byte[] classBytes = null;
try {
InputStream in = getResourceAsStream(fileName);
if (in == null) {
return null;
}
ByteArrayOutputStream baos = new ByteArrayOutputStream();
... | java |
private final Object typeCheck(Object value, int type) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
SibTr.debug(this, tc, "typecheck: value = " + value + ", " + value.getClass() + " , type=" + type);
switch (type) {
/* No checking, just return the value */
... | java |
final Serializable restoreMapObject(byte[] mapItemArray) throws IOException, ClassNotFoundException {
Serializable item = null;;
/* If it is a real byte array, we need to return a safe copy with the */
/* header bytes removed. */
if ((mapItemArray[0] == HEADER_BYTE_0) && (mapItemArray[... | java |
final void setTransportVersion(Object value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTransportVersion", value);
getHdr2().setField(JsHdr2Access.TRANSPORTVERSION_DATA, value);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEn... | java |
final void clearTransportVersion() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "clearTransportVersion");
getHdr2().setChoiceField(JsHdr2Access.TRANSPORTVERSION, JsHdr2Access.IS_TRANSPORTVERSION_EMPTY);
if (TraceComponent.isAnyTracingEnable... | java |
public Object getInstanceOf(String key){
try {
ClassLoader loader = Thread.currentThread().getContextClassLoader();
return Class.forName((String)classesMap.get(key),true,loader).newInstance();
} catch (IllegalAccessException e) {
logger.logp(Level.SEVERE,"JspClassFactory","getInstanceOf","jsp.error... | java |
static ImmutableAttributes loadAttributes(String repoType, File featureFile, ProvisioningDetails details) throws IOException {
// This will throw exceptions if required attributes mismatch or are missing
details.ensureValid();
// retrieve the symbolic name and feature manifest version
... | java |
static ImmutableAttributes loadAttributes(String line,
ImmutableAttributes cachedAttributes) {
// Builder pattern for Immutable attributes
// This parses a cache line that looks like this:
// repoType|symbolicName=Lots;of;attribtues
int ind... | java |
public final synchronized void commitDecrementReferenceCount(PersistentTransaction transaction) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "commitDecrementReferenceCount");
if (_referenceCount < 1)
{
... | java |
public final synchronized void incrementReferenceCount() throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "incrementReferenceCount");
if (_referenceCountIsDecreasing)
{
if (TraceComponent.isAnyTracingEnabled... | java |
public final synchronized void rollbackIncrementReferenceCount(PersistentTransaction transaction) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "rollbackIncrementReferenceCount");
if (_referenceCount < 1)
{
... | java |
@Override
public void performFileBasedAction(Collection<File> modifiedFiles) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "performFileBasedAction", new Object[] { modifiedFiles });
try {
com.ibm.ws.ssl.config.KeyStoreManager.getInstance().c... | java |
protected void unsetFileMonitorRegistration() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "unsetFileMonitorRegistration");
}
if (keyStoreFileMonitorRegistration != null) {
keyStoreFileMonitorRegistration.unregister();
... | java |
protected void setFileMonitorRegistration(ServiceRegistration<FileMonitor> keyStoreFileMonitorRegistration) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "setFileMonitorRegistration");
}
this.keyStoreFileMonitorRegistration = keyStoreFileMoni... | java |
private void createFileMonitor(String ID, String keyStoreLocation, String trigger, long interval) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "createFileMonitor", new Object[] { ID, keyStoreLocation, trigger, interval });
try {
keyStoreFileMoni... | java |
protected void unsetKeyringMonitorRegistration() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "unsetKeyringMonitorRegistration");
}
if (keyringMonitorRegistration != null) {
keyringMonitorRegistration.unregister();
ke... | java |
protected void setKeyringMonitorRegistration(ServiceRegistration<KeyringMonitor> keyringMonitorRegistration) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "setKeyringMonitorRegistration");
}
this.keyringMonitorRegistration = keyringMonitorReg... | java |
private void createKeyringMonitor(String ID, String trigger, String keyStoreLocation) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "createKeyringMonitor", new Object[] { ID, trigger });
try {
KeyringMonitor = new KeyringMonitorImpl(this);
... | java |
public static byte[] encodeDN(Codec codec, String distinguishedName) throws Exception {
X500Principal issuer = new X500Principal(distinguishedName);
X509CertSelector certSelector = new X509CertSelector();
certSelector.setIssuer(issuer);
byte[] asnX501DN = certSelector.getIssuerAsBytes();... | java |
public static String decodeDN(Codec codec, byte[] encodedDN) throws SASException {
String dn = null;
try {
Any any = codec.decode_value(encodedDN, X501DistinguishedNameHelper.type());
byte[] asnX501DN = X501DistinguishedNameHelper.extract(any);
X500Principal x500Pri... | java |
private static String upperCaseIndexString(String iiopName) {
StringBuilder StringBuilder = new StringBuilder();
for (int i = 0; i < iiopName.length(); i++) {
char c = iiopName.charAt(i);
if (Character.isUpperCase(c)) {
StringBuilder.append('_').append(i);
... | java |
private static String replace(String source, char oldChar, String newString) {
StringBuilder StringBuilder = new StringBuilder(source.length());
for (int i = 0; i < source.length(); i++) {
char c = source.charAt(i);
if (c == oldChar) {
StringBuilder.append(newStri... | java |
private static String buildOverloadParameterString(Class<?> parameterType) {
String name = "_";
int arrayDimensions = 0;
while (parameterType.isArray()) {
arrayDimensions++;
parameterType = parameterType.getComponentType();
}
// arrays start with org_omg... | java |
private static String buildClassName(Class<?> type) {
if (type.isArray()) {
throw new IllegalArgumentException("type is an array: " + type);
}
// get the classname
String typeName = type.getName();
int endIndex = typeName.lastIndexOf('.');
if (endIndex < 0) {... | java |
public List<Persistence.PersistenceUnit> getPersistenceUnit() {
if (persistenceUnit == null) {
persistenceUnit = new ArrayList<Persistence.PersistenceUnit>();
}
return this.persistenceUnit;
} | java |
public final static PersistenceType getPersistenceType(Byte aValue) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue);
return set[aValue.intValue()];
} | java |
protected void register(String[] specificPackageList)
{
if (TraceComponent.isAnyTracingEnabled() && _tc.isEntryEnabled()) SibTr.entry(_tc, "register", new Object[] { this, specificPackageList });
synchronized(SibDiagnosticModule.class)
{
if (!_registeredMasterDiagnosticModule)
{
SibDi... | java |
protected void captureDefaultInformation(IncidentStream is, Throwable th)
{
is.writeLine("Platform Messaging :: Messaging engine:", SibTr.getMEName(null));
// is.writeLine("Platform Messaging :: Release name: ", BuildInfo.getBuildRelease());
// is.writeLine("Platform Messaging :: Level name: ", Buil... | java |
public void ffdcDumpDefault(Throwable t, IncidentStream is, Object callerThis, Object[] objs, String sourceId)
{
is.writeLine("SIB FFDC dump for:", t);
captureDefaultInformation(is,t);
if (callerThis != null)
{
is.writeLine("SibDiagnosticModule :: Dump of callerThis (DiagnosticModule)", toFFDC... | java |
public final String toFFDCString(Object obj)
{
if (obj instanceof Map)
{
return toFFDCString((Map) obj);
}
else if (obj instanceof Collection)
{
return toFFDCString((Collection) obj);
}
else if (obj instanceof Object[])
{
return toFFDCString((Obj... | java |
protected String toFFDCStringSingleObject(Object obj)
{
if (obj == null)
{
return "<null>";
}
else if (obj instanceof Traceable)
{
return ((Traceable) obj).toTraceString();
}
else if (obj instanceof String)
{
return ((String) obj);
}
else if (obj instanceof by... | java |
public final String toFFDCString(Collection aCollection)
{
StringBuffer buffer = new StringBuffer();
buffer.append('{');
if (aCollection == null)
{
buffer.append("<null>");
}
else
{
Iterator i = aCollection.iterator();
boolean hasNext = i.hasNext();
int ctr = 0;
... | java |
public final String toFFDCString(Map aMap)
{
StringBuffer buffer = new StringBuffer();
buffer.append('{');
if (aMap == null)
{
buffer.append("<null>");
}
else
{
Iterator i = aMap.entrySet().iterator();
boolean hasNext = i.hasNext();
int ctr = 0;
while (hasNext... | java |
private boolean removeComments(DocumentBuilder parser, Document doc) {
try {
// Check for the traversal module
DOMImplementation impl = parser.getDOMImplementation();
if (!impl.hasFeature("traversal", "2.0")) {
// DOM implementation does not support traversal ... | java |
public static void nodeListRemoveAll(Element xEml, NodeList nodes) {
int cnt = nodes.getLength();
for (int i = 0; i < cnt; i++)
xEml.removeChild(nodes.item(0));
} | java |
private ServiceRegistration<?> registerMBeanService(String jmsResourceName, BundleContext bundleContext) {
Dictionary<String, String> props = new Hashtable<String, String>();
props.put(KEY_SERVICE_VENDOR, "IBM");
JmsServiceProviderMBeanImpl jmsProviderMBean = new JmsServiceProviderMBeanImpl(get... | java |
private static Object invokeDefaultMethodUsingPrivateLookup(Class<?> declaringClass, Object o, Method m,
Object[] params) throws WrappedException, NoSuchMethodException {
try {
final Method privateLookup = MethodHandles
.class
.getDeclaredMethod("privateL... | java |
@Override
public WsByteBuffer buildFrameForWrite() {
WsByteBuffer[] output = buildFrameArrayForWrite();
int size = 0;
for (WsByteBuffer b : output) {
if (b != null) {
size += b.remaining();
}
}
WsByteBuffer singleBuffer = this.getBuffe... | java |
public EJSHome create(BeanMetaData beanMetaData)
throws RemoteException
{
J2EEName name = beanMetaData.j2eeName;
HomeRecord hr = beanMetaData.homeRecord;
StatelessBeanO homeBeanO = null;
EJSHome result = null;
try {
result = (EJSHome) beanMeta... | java |
public void addHome(BeanMetaData bmd) // F743-26072
throws RemoteException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "addHome : " + bmd.j2eeName);
if (homesByName.get(bmd.j2eeName) != null) {
... | java |
private void updateAppLinkData(AppLinkData linkData, boolean add, J2EEName j2eeName, BeanMetaData bmd) // F743-26072
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "updateAppLinkData: " + j2eeName + ", add=" + add);
... | java |
private static <T> void updateAppLinkDataTable(Map<String, Set<T>> table,
boolean add,
String key,
T value,
String t... | java |
private void updateAutoLink(AppLinkData linkData, boolean add, J2EEName j2eeName, BeanMetaData bmd)
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "updateAutoLink");
String module = j2eeName.getModule();
... | java |
@Override
public BeanO createBeanO(EJBThreadData threadData, ContainerTx tx, BeanId id)
throws RemoteException
{
J2EEName homeKey = id.getJ2EEName(); // d366845.3
HomeRecord hr = homesByName.get(homeKey); // d366845.3
BeanO result = null; // d199071
if (hr !=... | java |
@Override
public String getEnterpriseBeanClassName(Object homeKey)
{
HomeRecord hr = homesByName.get(homeKey); // d366845.3
return hr.homeInternal.getEnterpriseBeanClassName(homeKey);
} | java |
public Object resolveVariable(String pName) throws ELException {
ELContext ctx = this.getELContext();
return ctx.getELResolver().getValue(ctx, null, pName);
} | java |
private void copyTagToPageScope(int scope) {
Iterator iter = null;
switch (scope) {
case VariableInfo.NESTED:
if (nestedVars != null) {
iter = nestedVars.iterator();
}
break;
case VariableInfo.AT_BEGIN:
if (atBeginVars != null) {
iter = atBeginVars.iterator();
}
break;
case Varia... | java |
private void saveNestedVariables() {
if (nestedVars != null) {
Iterator iter = nestedVars.iterator();
while (iter.hasNext()) {
String varName = (String) iter.next();
varName = findAlias(varName);
Object obj = invokingJspCtxt.getAttribute(varName);
if (obj != null) {
originalNestedVars.put(varNa... | java |
private void restoreNestedVariables() {
if (nestedVars != null) {
Iterator iter = nestedVars.iterator();
while (iter.hasNext()) {
String varName = (String) iter.next();
varName = findAlias(varName);
Object obj = originalNestedVars.get(varName);
if (obj != null) {
invokingJspCtxt.setAttribute(va... | java |
public RangeObject getNext()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getNext", Integer.valueOf(cursor));
int curr = cursor;
cursor = cursor < (blockVector.size() - 1) ? cursor + 1 : cursor;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntry... | java |
public void replacePrefix(RangeObject w)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "replacePrefix", w);
long lstamp = w.endstamp;
// Set index to position of lstamp.
int lindex;
RangeObject lastro;
for (lindex = 0;; lindex++)
{
l... | java |
protected final int getIndex(long stamp)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getIndex", Long.valueOf(stamp));
int first = 0;
int last = blockVector.size();
int index = linearSearch(stamp, first, last - 1);
if (TraceComponent.isAnyT... | java |
protected void handleJwtRequest(HttpServletRequest request, HttpServletResponse response,
ServletContext servletContext, JwtConfig jwtConfig, EndpointType endpointType) throws IOException {
if (jwtConfig == null) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "No JwtConfig object provided");
}
return;
}
... | java |
private boolean isTransportSecure(HttpServletRequest req) {
String url = req.getRequestURL().toString();
if (req.getScheme().equals("https")) {
return true;
}
String value = req.getHeader("X-Forwarded-Proto");
if (value != null && value.toLowerCase().equals("https")) {
return true;
}
return false;
... | java |
private void processTokenRequest(HttpServletResponse response, JwtConfig jwtConfig) throws IOException {
String tokenString = new TokenBuilder().createTokenString(jwtConfig);
addNoCacheHeaders(response);
response.setStatus(200);
if (tokenString == null) {
return;
}
try {
PrintWriter pw = response.ge... | java |
private void processJWKRequest(HttpServletResponse response, JwtConfig jwtConfig) throws IOException {
/*
* if (!jwtConfig.isJwkEnabled()) { String errorMsg =
* Tr.formatMessage(tc, "JWK_ENDPOINT_JWK_NOT_ENABLED", new Object[] {
* jwtConfig.getId() }); Tr.error(tc, errorMsg);
* response.sendError(HttpSer... | java |
protected void addNoCacheHeaders(HttpServletResponse response) {
String cacheControlValue = response.getHeader(WebConstants.HEADER_CACHE_CONTROL);
if (cacheControlValue != null && !cacheControlValue.isEmpty()) {
cacheControlValue = cacheControlValue + ", " + WebConstants.CACHE_CONTROL_NO_STORE;
} else {
ca... | java |
protected void activate() throws Exception {
// If the ProbeProxy class is available, check it's version
String runtimeVersion = getRuntimeClassVersion();
if (runtimeVersion != null && !runtimeVersion.equals(getCurrentVersion())) {
// TODO: Use a compatibility check instead
... | java |
@FFDCIgnore(Exception.class)
String getRuntimeClassVersion() {
String runtimeVersion = null;
try {
Class<?> clazz = Class.forName(PROBE_PROXY_CLASS_NAME);
Field version = ReflectionHelper.getDeclaredField(clazz, VERSION_FIELD_NAME);
runtimeVersion = (String) versi... | java |
JarFile getBootProxyJarIfCurrent() {
File dataFile = bundleContext.getDataFile("boot-proxy.jar");
if (!dataFile.exists()) {
return null;
}
JarFile jarFile = null;
try {
jarFile = new JarFile(dataFile);
Manifest manifest = jarFile.getManifest()... | java |
JarFile createBootProxyJar() throws IOException {
File dataFile = bundleContext.getDataFile("boot-proxy.jar");
// Create the file if it doesn't already exist
if (!dataFile.exists()) {
dataFile.createNewFile();
}
// Generate a manifest
Manifest manifest = cre... | java |
public void createDirectoryEntries(JarOutputStream jarStream, String packageName) throws IOException {
StringBuilder entryName = new StringBuilder(packageName.length());
for (String str : packageName.split("\\.")) {
entryName.append(str).append("/");
JarEntry jarEntry = new JarEn... | java |
private void writeRemappedClass(URL classUrl, JarOutputStream jarStream, String targetPackage) throws IOException {
InputStream inputStream = classUrl.openStream();
String sourceInternalName = getClassInternalName(classUrl);
String targetInternalName = getTargetInternalName(sourceInternalName, t... | java |
String getTargetInternalName(String sourceInternalName, String targetPackage) {
StringBuilder targetInternalName = new StringBuilder();
targetInternalName.append(targetPackage.replaceAll("\\.", "/"));
int lastSlashIndex = sourceInternalName.lastIndexOf('/');
targetInternalName.append(so... | java |
void activateProbeProxyTarget() throws Exception {
Method method = ReflectionHelper.getDeclaredMethod(
probeManagerImpl.getClass(),
ProbeMethodAdapter.FIRE_PROBE_METHOD_NAME,
... | java |
@Override
public void setWebApp(com.ibm.ws.webcontainer.webapp.WebApp webApp)
{
super.setWebApp((WebApp)webApp);
} | java |
public static boolean isBeanValidationAvailable()
{
if (beanValidationAvailable == null)
{
try
{
try
{
beanValidationAvailable = (Class.forName("javax.validation.Validation") != null);
}
catch... | java |
void handleRollback(SubscriptionMessage subMessage,
LocalTransaction transaction)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "handleRollback", new Object[] { subMessage, transaction });
try
{
if (transaction != null)
{
try
{
transaction.r... | java |
void handleDeleteProxySubscription(SubscriptionMessage deleteMessage,
Transaction transaction) throws SIResourceException
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "handleDeleteProxySubscription",
new Object[] { deleteMessage, transaction });
// Get the iterators that we require for thi... | java |
public void setKerberosConnection() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "setting this mc to indicate it was gotten using kerberos");
kerberosConnection = true;
} | java |
public void markStale() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "mark mc stale");
_mcStale = true;
} | java |
private final void addHandle(WSJdbcConnection handle) throws ResourceException {
(numHandlesInUse < handlesInUse.length - 1 ? handlesInUse : resizeHandleList())[numHandlesInUse++] = handle;
if (!inRequest && dsConfig.get().enableBeginEndRequest)
try {
inRequest = true;
... | java |
public void connectionClosed(javax.sql.ConnectionEvent event) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled())
Tr.event(this, tc, "connectionClosed", "Notification of connection closed received from the JDBC driver", AdapterUtil.toString(event.getSource()));
// We have int... | java |
private void destroyStatement(Object unwantedStatement) {
try {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc,
"Statement cache at capacity. Discarding a statement.",
AdapterUtil.toString(unwanted... | java |
final void detectMultithreadedAccess() {
Thread currentThreadID = Thread.currentThread();
if (currentThreadID == threadID)
return;
if (threadID == null)
threadID = currentThreadID;
else {
mcf.detectedMultithreadedAccess = true;
java.io.S... | java |
public void dissociateConnections() throws ResourceException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "dissociateConnections");
// The first exception to occur while dissociating connection hand... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.