code
stringlengths
73
34.1k
label
stringclasses
1 value
public boolean updateIOCounts(long byteCount, int type) { setLastIOAmt(byteCount); setIODoneAmount(getIODoneAmount() + byteCount); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { String dbString = null; if (type == 0) { dbString = "Rea...
java
public ConversationReceiveListener acceptConnection(Conversation cfConversation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "acceptConnection", cfConversation); // Add this conversation to our active conversations list synchronized (activeConv...
java
public void removeConversation(Conversation conv) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeConversation", conv); synchronized (activeConversations) { Object connectionReference = conv.getConnectionReference(); Ar...
java
public void connectionClosed(Object connectionReference) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "connectionClosed", connectionReference); removeAllConversations(connectionReference); if (TraceComponent.isAnyTracingEnabled() && tc.is...
java
public void removeAllConversations(Object connectionReference) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeAllConversations", connectionReference); final ArrayList list; synchronized (activeConversations) { list = (Arra...
java
protected final ObjectFactoryInfo getObjectFactoryInfo(Class<?> klass, String className) // F743-32443 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "getObjectFactory: " + klass + ", " + className); if (ivObj...
java
private void updateInjectionBinding(String jndiName, InjectionBinding<A> injectionBinding) // d675172 { // If the annotation didn't have a name or the binding implementation // constructor did not set it, then the binding needs to be updated // with the default name or name (if not set by co...
java
private <P extends Annotation> InjectionBinding<?> addOrMergeOverrideInjectionBinding(Class<?> instanceClass, Member member, A annotation, ...
java
void performJavaNameSpaceBinding() throws InjectionException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "performJavaNameSpaceBinding: " + this); for (InjectionBinding<A> injectionBinding : ivAllAnnotations...
java
public final void addInjectionBinding(InjectionBinding<A> injectionBinding) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "addInjectionBinding: " + injectionBinding); // jndi name not found in collection, sim...
java
protected final String getJavaBeansPropertyName(Member fieldOrMethod) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "getJavaBeansPropertyName : " + fieldOrMethod); String propertyName; if (fieldOrMeth...
java
public Set<String> getServerFeatures() { ServerTask serverTask = runningServer.get(); try { if (serverTask != null) return serverTask.getServerFeatures(); } catch (InterruptedException e) { // nothing to do here, we couldn't get the results from the server...
java
protected Node findNode(int nodeStreamID) { // mainline debug in this recursive method is way to verbose, so only debug when we find what we are looking for if (nodeStreamID == this.streamID) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, ...
java
protected void addDependent(Node nodeToAdd) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "addDependent entry: node to add: " + nodeToAdd); } dependents.add(nodeToAdd); }
java
protected void removeDependent(Node nodeToRemove) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "removeDependent entry: node to remove: " + nodeToRemove); } dependents.remove(nodeToRemove); }
java
protected void clearDependentsWriteCount() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "clearDependentsWriteCount entry: for this node: " + this); } dependentWriteCount = 0; if ((dependents == null) || (dependents.size() == 0)) { ...
java
protected Node findNextWrite() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "findNextWrite entry: on node " + this + "With status: " + status + "and positive ratio of: " + getPriorityRatioPositive()); } if (status == NODE_STATUS.REQUESTING_WRITE...
java
protected int incrementDependentWriteCount() { dependentWriteCount++; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "incrementDependentWriteCount entry: new dependentWriteCount of: " + dependentWriteCount + " for node: " + this); } return dep...
java
protected void setParent(Node newParent, boolean removeDep) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "setParent entry: new parent will be: " + newParent + " for node: " + this); } Node oldParent = parent; parent = newParent; ...
java
private final AbstractItemLink _next(long lockID) throws SevereMessageStoreException { // first look for an available link that we can lock. We scan the tree // removing each element as we find it. If we are able to lock the link // we use it. AbstractItemLink lockedMatchingLink = nu...
java
public final void available(AbstractItemLink link) throws SevereMessageStoreException { if (_jumpbackEnabled) { final long newPos = link.getPosition(); // we need to synchronize the read of the position // or we can miss out items when reading an empty queue fast...
java
public final AbstractItem next(long lockID) throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "next", Long.valueOf(lockID)); final AbstractItemLink lockedMatchingLink = _next(lockID); // retrieve the item from the li...
java
public final void finished() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "finished"); if (null != _lastLink) { _lastLink.cursorRemoved(); _lastLink = null; } if (TraceComponent.isAnyTracingEnabled() && tc....
java
private void callTransactionalLifecycleInterceptors(InterceptorProxy[] proxies, int methodId) throws RemoteException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); LifecycleInterceptorWrapper wrapper = new LifecycleInterceptorWrapper(container, this); EJSDeployedSupport s = ...
java
@Override public void postInvoke(int id, EJSDeployedSupport s) throws RemoteException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "postInvoke"); } // Release lock acquired if container managed con...
java
private Class<?> resolveClassWithCL(String name) throws ClassNotFoundException { SecurityManager security = System.getSecurityManager(); if (security != null) { return Class.forName(name, false, getClassLoader(thisClass)); } // The platform classloader is null if we failed t...
java
@Override protected Class<?> resolveProxyClass(String[] interfaceNames) throws ClassNotFoundException { ClassLoader proxyClassLoader = classLoader; Class<?>[] interfaces = new Class[interfaceNames.length]; Class<?> nonPublicInterface = null; for (int i = 0; i < interfaceNames.length...
java
private static ClassLoader getPlatformClassLoader() { if (JavaInfo.majorVersion() >= 9) { return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() { @Override public ClassLoader run() { ClassLoader pcl = null; tr...
java
@Override public void setAsynchConsumerCallback(int requestNumber, int maxActiveMessages, long messageLockExpiry, int batchsize, OrderingContext ord...
java
@Override public void flush(int requestNumber) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "flush", "" + requestNumber); try { // Make sure it is stopped before we activate it if (mainConsumer.isStarted()) ...
java
private boolean sendMessage(SIBusMessage sibMessage, boolean lastMsg, Integer priority) throws MessageEncodeFailedException, IncorrectMessageTypeException, MessageCopyFailedException, UnsupportedEncodingException { if (TraceComponen...
java
private boolean sendEntireMessage(SIBusMessage sibMessage, List<DataSlice> messageSlices, boolean lastMsg, Integer priority) throws MessageEncodeFailedException, IncorrectMessageTypeException, MessageCopyFailedException, ...
java
public void consumerSessionStopped() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "consumerSessionStopped"); // Inform the main consumer instance that message processor has stopped the session, this will prevent any more // restart request...
java
private void checkObjectFactoryAttributes(ResourceInjectionBinding resourceBinding, ObjectFactoryInfo extensionFactory) // d675976 throws InjectionConfigurationException { Resource resourceAnnotation = resourceBinding.getAnnotation(); if (!extension...
java
private Reference createExtensionFactoryReference(ObjectFactoryInfo extensionFactory, ResourceInjectionBinding resourceBinding) // F48603.9 { String className = extensionFactory.getObjectFactoryClass().getName(); Reference ref = new Reference(res...
java
private ResourceInfo createResourceInfo(ResourceInjectionBinding resourceBinding) // F48603.9 { J2EEName j2eeName = ivNameSpaceConfig.getJ2EEName(); Resource resourceAnnotation = resourceBinding.getAnnotation(); return new ResourceInfo(j2eeName == null ? null : j2eeName.getApplication(), ...
java
public HttpURLConnection createConnection(TLSClientParameters tlsClientParameters, Proxy proxy, URL url) throws IOException { HttpURLConnection connection = (HttpURLConnection) (proxy != null ? url.openConnection(proxy) : url.openConnection()); if (HTTPS_UR...
java
public static List<Parameter> collectConstructorParameters(Class<?> cls, Components components, javax.ws.rs.Consumes classConsumes) { if (cls.isLocalClass() || (cls.isMemberClass() && !Modifier.isStatic(cls.getModifiers()))) { return Collections.emptyList(); } List<Parameter> select...
java
public static List<Parameter> collectFieldParameters(Class<?> cls, Components components, javax.ws.rs.Consumes classConsumes) { final List<Parameter> parameters = new ArrayList<Parameter>(); for (Field field : ReflectionUtils.getDeclaredFields(cls)) { final List<Annotation> annotations = Arr...
java
public static String[] splitContentValues(String[] strings) { final Set<String> result = new LinkedHashSet<String>(); for (String string : strings) { if (string.isEmpty()) continue; String[] splitted = string.trim().split(","); for (String string2 : s...
java
public static boolean objectsNotEqual(final Object one, final Object two) { return (one == null) ? (two != null) : (!one.equals(two)); }
java
public static void addFieldToString(final StringBuffer buffer, final String name, final Object value) { buffer.append(" <"); buffer.append(name); buffer.append("="); buffer.append(value); buffer.append(">"); }
java
public static void addPasswordFieldToString(final StringBuffer buffer, final String name, final Object value) { addFieldToString(buffer, name, (value == null) ? null : "*****"); }
java
public final void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { _jspService(request, response); }
java
public Object put(long key, Object value) { if (tc.isEntryEnabled()) Tr.entry(tc, "put", new Object[]{new Long(key), value, this}); if (value == null) { if (tc.isEntryEnabled()) Tr.exit(tc, "put", "IllegalArgumentException"); throw new IllegalArgumentException("Null is not a permitted value."); } ...
java
public Object remove(long key) { if (tc.isEntryEnabled()) Tr.entry(tc, "remove", new Object[]{new Long(key), this}); int hash = getHashForExistingEntry(key); Object result = null; if (hash >= 0) { result = _values[hash]; } if (result != null) { if (tc.isD...
java
public Object get(long key) { if (tc.isEntryEnabled()) Tr.entry(tc, "get", new Object[]{new Long(key), this}); int hash = getHashForExistingEntry(key); Object value = null; if (hash >= 0) { value = _values[hash]; } if (tc.isEntryEnabled()) Tr.exit(tc, "get", ...
java
private int getHashForKey(long key) { if (tc.isEntryEnabled()) Tr.entry(tc, "getHashForKey", new Object[]{new Long(key), this}); int hash = (int) (key % _mapSize); if (hash < 0) hash = -hash; if (tc.isEntryEnabled()) Tr.exit(tc, "getHashForKey", new Integer(hash)); return hash; }
java
private void processConfigProps(Map<String, Object> props) { if (props == null || props.isEmpty()) return; id = (String) props.get(CFG_KEY_ID); if (id == null) { Tr.error(tc, "AUTHZ_ROLE_ID_IS_NULL"); return; } rolePids = (String[]) props.get(C...
java
private Configuration retrieveConfig(NestedConfigHelper configHelper, ConfigurationAdmin configAdmin) throws InitWithoutConfig { if (configHelper == null) throw new InitWithoutConfig("Configuration not found"); // We need configAdmin to list the configurations of nested classloader elements ...
java
private List<String> getIds(ConfigurationAdmin ca, String[] pids) { final String methodName = "getIds(): "; if (pids == null) { return Collections.emptyList(); } List<String> ids = new ArrayList<String>(); for (String pid : pids) { try { St...
java
private boolean folderContainsFiles(File folder) { if (folder != null) { File[] files = folder.listFiles(); for (File file : files) if (file.isFile()) return true; for (File file : files) if (file.isDirectory()) ...
java
public static ASN1Sequence getInstance( Object obj) { if (obj == null || obj instanceof ASN1Sequence) { return (ASN1Sequence)obj; } throw new IllegalArgumentException("unknown object in getInstance"); }
java
private static boolean markError(OverlayContainer overlay, String errorTag) { if ( overlay.getFromNonPersistentCache(errorTag, WebExtAdapter.class) == null ) { overlay.addToNonPersistentCache(errorTag, WebExtAdapter.class, errorTag); return true; } else { return false...
java
@Override @FFDCIgnore(ParseException.class) public com.ibm.ws.javaee.dd.webext.WebExt adapt( Container root, OverlayContainer rootOverlay, ArtifactContainer artifactContainer, Container containerToAdapt) throws UnableToAdaptException { // What web extension is stored dep...
java
private String stripExtension(String moduleName) { if ( moduleName.endsWith(".war") || moduleName.endsWith(".jar") ) { return moduleName.substring(0, moduleName.length() - 4); } return moduleName; }
java
public final boolean isReconfigurable(WSConnectionRequestInfoImpl cri, boolean reauth) { // The CRI is only reconfigurable if all fields which cannot be changed already match. // Although sharding keys can sometimes be changed via connection.setShardingKey, // the spec does not guarantee th...
java
private boolean matchKerberosIdentities(WSConnectionRequestInfoImpl cri) { boolean flag = false; final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "matchKerberosIdentities", this, cri); if (kerberosIdent...
java
private static final boolean match(Object obj1, Object obj2) { return obj1 == obj2 || (obj1 != null && obj1.equals(obj2)); }
java
private final boolean matchCatalog(WSConnectionRequestInfoImpl cri) { // At least one of the CRIs should know the default value. String defaultValue = defaultCatalog == null ? cri.defaultCatalog : defaultCatalog; return match(ivCatalog, cri.ivCatalog) || ivCatalog == null && matc...
java
private final boolean matchSchema(WSConnectionRequestInfoImpl cri){ // At least one of the CRIs should know the default value. String defaultValue = defaultSchema == null ? cri.defaultSchema : defaultSchema; return match(ivSchema, cri.ivSchema) || ivSchema == null && match(defaul...
java
private final boolean matchNetworkTimeout(WSConnectionRequestInfoImpl cri){ // At least one of the CRIs should know the default value. int defaultValue = defaultNetworkTimeout == 0 ? cri.defaultNetworkTimeout : defaultNetworkTimeout; return ivNetworkTimeout == cri.ivNetworkTimeout ...
java
private final boolean matchHoldability(WSConnectionRequestInfoImpl cri) { // At least one of the CRIs should know the default value. int defaultValue = defaultHoldability == 0 ? cri.defaultHoldability : defaultHoldability; return ivHoldability == cri.ivHoldability || ivHoldabilit...
java
private final boolean matchReadOnly(WSConnectionRequestInfoImpl cri) { // At least one of the CRIs should know the default value. Boolean defaultValue = defaultReadOnly == null ? cri.defaultReadOnly : defaultReadOnly; return match(ivReadOnly, cri.ivReadOnly) || ivReadOnly == null...
java
private final boolean matchTypeMap(WSConnectionRequestInfoImpl cri) { // At least one of the CRIs should know the default value. Map<String, Class<?>> defaultValue = defaultTypeMap == null ? cri.defaultTypeMap : defaultTypeMap; return matchTypeMap(ivTypeMap, cri.ivTypeMap) || ivT...
java
public static final boolean matchTypeMap(Map<String, Class<?>> m1, Map<String, Class<?>> m2) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "matchTypeMap", new Object[] { m1, m2 }); boolean match = false; ...
java
public void setDefaultValues(String catalog, int holdability, Boolean readOnly, Map<String, Class<?>> typeMap, String schema, int networkTimeout) { defaultCatalog = catalog; defaultHoldability = holdability; defaultReadOnly = readOnly; defaultTypeMap = ty...
java
public boolean isCRIChangable() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "isCRIChangable :", changable); return changable; }
java
public void setCatalog(String catalog) throws SQLException { if (!changable) { throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR", new Object[] { "ConnectionRequestInfo cannot be modified, doing so may result in corruption: catalog, cri", catalog, this })); } ...
java
public void setHoldability(int holdability) throws SQLException { if (!changable) { throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR", new Object[] { "ConnectionRequestInfo cannot be modified, doing so may result in corruption: holdability, cri", holdability, this }));...
java
public void setTransactionIsolationLevel(int iso) throws SQLException { if (!changable) { throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR", "ConnectionRequestInfo cannot be modified, doing so may result in corruption: ...
java
public void setReadOnly(boolean readOnly) throws SQLException { if (!changable) { throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR", new Object[] { ...
java
public void setShardingKey(Object shardingKey) throws SQLException { if (!changable) throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR", "ConnectionRequestInfo cannot be modified, doing so may result in corruption: shardingKey, cri", shardingKey, this)); if...
java
public void setSuperShardingKey(Object superShardingKey) throws SQLException { if (!changable) throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR", "ConnectionRequestInfo cannot be modified, doing so may result in corruption: superShardingKey, cri", superShardingKey,...
java
public void setTypeMap(Map<String, Class<?>> map) throws SQLException { if (!changable) { throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR", new Object[] { "ConnectionRequestInfo cannot be modified, doing so may result in corruption: type map, cri", map, this })); ...
java
public static WSConnectionRequestInfoImpl createChangableCRIFromNon(WSConnectionRequestInfoImpl oldCRI) { WSConnectionRequestInfoImpl connInfo = new WSConnectionRequestInfoImpl( oldCRI.getUserName(), oldCRI.getPassword(), oldCRI.getIsolatio...
java
@Override protected void processAnnotations(Object instance) throws IllegalAccessException, InvocationTargetException, NamingException { if (context == null) { // No resource injection return; } checkAnnotation(instance.getClass(), instance);...
java
protected static void lookupMethodResource(javax.naming.Context context, Object instance, Method method, String name) throws NamingException, IllegalAccessException, InvocationTargetException { if (!method.getName().startsWith("set") || method.getParameterTypes().len...
java
private void _send(SIBusMessage msg, SITransaction tran) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SILimitExceededException, SIErrorExcepti...
java
private void sendEntireMessage(SITransaction tran, SIBusMessage msg, List<DataSlice> messageSlices, boolean requireReply, short jfapPriority) throws SIResourceException, SISessionUnavailableException, SINotPossibleInCurrentConfig...
java
private void sendData(CommsByteBuffer request, short jfapPriority, boolean requireReply, SITransaction tran, int outboundSegmentType, int outboundNoReplySegmentType, int replySegmentType) throws SIResourceException, SISessionUnavailableException, ...
java
public void close() throws SIResourceException, SIConnectionLostException, SIErrorException, SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close"); // Have we already been closed? if (!isClosed()) ...
java
private static Object getFieldValue(FieldClassValue fieldClassValue, Object obj) { try { return fieldClassValue.get(obj.getClass()).get(obj); } catch (IllegalAccessException e) { // FieldClassValueFactory returns ClassValue that make the Field // accessible, so this s...
java
public static WrapperProxyState getLocalBeanWrapperProxyState(LocalBeanWrapperProxy obj) { // F58064 BusinessLocalWrapperProxy proxyStateHolder = (BusinessLocalWrapperProxy) getFieldValue(svLocalBeanWrapperProxyStateFieldClassValue, obj); return proxyStateHolder.ivState; }
java
protected void registerServant() { if (ivRemoteObjectWrapper != null) { // synchronized on the remote Wrapper to set the isRemoteRegistered flag synchronized (ivRemoteObjectWrapper) { if (!isRemoteRegistered) { ...
java
private void registerServant(BusinessRemoteWrapper wrapper, int i) { // synchronized on the remote Wrapper to set the isRemoteRegistered flag synchronized (wrapper) { if (!ivBusinessRemoteRegistered[i]) { try { if (!...
java
protected void disconnect() { if (localWrapperProxyState != null) // F58064 { localWrapperProxyState.disconnect(); } if (ivBusinessLocalWrapperProxyStates != null) // F58064 { for (WrapperProxyState state : ivBusinessLocalWrapperProxyStates) ...
java
public EJBLocalObject getLocalObject() { if (localObject != null) { if (localWrapperProxyState != null && localWrapperProxyState.ivWrapper == null) { localWrapperProxyState.connect(ivBeanId, localWrapper); } return local...
java
public Object getBusinessObject(String interfaceName) throws RemoteException { int interfaceIndex = ivBMD.getLocalBusinessInterfaceIndex(interfaceName); if (interfaceIndex != -1) { return getLocalBusinessObject(interfaceIndex); } interfaceIndex = ivBMD.getRemoteBusinessInter...
java
public Object getLocalBusinessObject(int interfaceIndex) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getLocalBusinessObject : " + ivBusinessLocalProxies[interfaceIndex].getClass().getName()); if (ivBusinessLocalWrapperProxySt...
java
public EJSWrapperBase getLocalBusinessWrapperBase(int interfaceIndex) { if (interfaceIndex == 0 && ivBMD.ivLocalBean) { return getLocalBeanWrapperBase((LocalBeanWrapper) ivBusinessLocal[0]); } return (EJSWrapperBase) ivBusinessLocal[0]; }
java
public Object getRemoteBusinessObject(int interfaceIndex) throws RemoteException { Class<?>[] bInterfaceClasses = ivBMD.ivBusinessRemoteInterfaceClasses; BusinessRemoteWrapper wrapper = ivBusinessRemote[interfaceIndex]; if (TraceComponent.isAnyTracingEnabled() && tc.isDe...
java
public BusinessRemoteWrapper getRemoteBusinessWrapper(WrapperId wrapperId) { int remoteIndex = wrapperId.ivInterfaceIndex; BusinessRemoteWrapper wrapper = null; String wrapperInterfaceName = ""; if (remoteIndex < ivBusinessRemote.length) { wrapper = ivBusinessRemo...
java
private String getAliasToFinalize(CMConfigData cmConfigData) { String alias = null; if (cmConfigData == null) return alias; // Not expected, but being safe // Check for DefaultPrincipalMapping alias from res-ref: final String DEFAULT_PRINCIPAL_MAPPING = "DefaultPrincipalMap...
java
private Set getPrivateGenericCredentials(final Subject subj) throws ResourceException { Set privateGenericCredentials = null; if (System.getSecurityManager() != null) { try { privateGenericCredentials = (Set) AccessController.doPrivileged( ...
java
private Object setJ2CThreadIdentity(final Subject subj) throws ResourceException { Object retObject = null; try { if (System.getSecurityManager() != null) { retObject = AccessController.doPrivileged( new PrivilegedEx...
java
private void checkForUTOKENNotFoundError(Subject subj) throws ResourceException { // A Subject without a UTOKEN genericCredential can // legitimately occur in the case where the resource // adapter has indicated Thread Identity Support // is "ALLOWED, but a valid Container-managed alias...
java
protected void copyStreams(InputStream is, OutputStream os) throws IOException { byte[] buffer = new byte[1024]; try { int read; while ((read = is.read(buffer)) != -1) { os.write(buffer, 0, read); buffer = new byte[1024]; } } fi...
java
protected ExtractedFileInformation extractFileFromArchive(String fileName, String regex) throws RepositoryArchiveException, RepositoryArchiveEntryNotFoundException, RepositoryArchiveIOException { JarFile jarFile = null; ExtractedFileInformat...
java
protected void processLAandLI(File archive, RepositoryResourceWritable resource, ProvisioningFeatureDefinition feature) throws IOException, RepositoryException { String LAHeader = feature.getHeader(LA_HEADER_FEATURE); String LIHeader = feature.getHeader(LI_HEADER_FEATUR...
java