code
stringlengths
73
34.1k
label
stringclasses
1 value
public static LooseConfig convertToLooseConfig(File looseFile) throws Exception { //make sure the file exists, can be read and is an xml if (looseFile.exists() && looseFile.isFile() && looseFile.canRead() && looseFile.getName().toLowerCase().endsWith(".xml")) { LooseConfig root = new LooseCo...
java
public static ArchiveEntryConfig createLooseArchiveEntryConfig(LooseConfig looseConfig, File looseFile, BootstrapConfig bootProps, String archiveEntryPrefix, boolean isUsr) throws IOException { File usrRoot = bootProps.getUserRoot(); int...
java
public static Pattern convertToRegex(String excludeStr) { // make all "." safe decimles then convert ** to .* and /* to /.* to make it regex if (excludeStr.contains(".")) { // regex for "." is \. - but we are converting the string to a regex string so need to escape the escape slash... ...
java
public synchronized CommsByteBuffer allocate() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "allocate"); // Remove a CommsByteBuffer from the pool CommsByteBuffer buff = (CommsByteBuffer) pool.remove(); // If the buffer is null then there was none available in the pool // So...
java
synchronized void release(CommsByteBuffer buff) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "release", buff); buff.reset(); pool.add(buff); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "release"); }
java
void setMessage(MessageImpl msg) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setMessage", msg); theMessage = msg; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setMessage"); }
java
DataSlice encodeSinglePartMessage(Object conn) throws MessageEncodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "encodeSinglePartMessage"); // We must only use this method if the message does not have a payload part if (payloadPart != null) { ...
java
List<DataSlice> encodeFast(Object conn) throws MessageEncodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "encodeFast"); // The 'conn' parameter (if supplied) is passed as an Object (for no good reason except the // daft build system), but it has t...
java
private final int encodeIds(byte[] buffer, int offset) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "encodeIds"); int idOffset = offset; // Write the JMF version number and Schema id for the header ArrayUtil.writeShort(buffer, idOffset, ((JMFMessage)headerPa...
java
private final DataSlice encodeHeaderPartToSlice(JsMsgPart jsPart) throws MessageEncodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "encodeHeaderPartToSlice", jsPart); // We hope that it is already encoded so we can just get it from JMF..... DataSl...
java
private final DataSlice encodePayloadPartToSlice(JsMsgPart jsPart, CommsConnection conn) throws MessageEncodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "encodePayloadPartToSlice", new Object[]{jsPart, conn}); boolean beans = false; DataSlice sli...
java
JMFSchema[] getEncodingSchemas() throws MessageEncodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getEncodingSchemas"); JMFSchema[] result; try { JMFSchema[] result1 = ((JMFMessage)headerPart.jmfPart).getSchemata(); JMFSchema[] result2...
java
JsMsgObject getCopy() throws MessageCopyFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getCopy"); JsMsgObject newJmo = null; try { // We need to lock the whole of the copy with the getHdr2, getApi & getPayload // methods on the ownin...
java
private final void ensureReceiverHasSchemata(CommsConnection conn) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "ensureReceiverHasSchemata", conn); // We need to check if the receiver has all the necessary schema definitions to be able // to deco...
java
final String debugMsg() { StringBuffer result; result = new StringBuffer(JSFormatter.format((JMFMessage)headerPart.jmfPart)); if (payloadPart != null) { result.append(JSFormatter.formatWithoutPayloadData((JMFMessage)payloadPart.jmfPart)); } return result.toString(); }
java
final String debugId(long id) { byte[] buf = new byte[8]; ArrayUtil.writeLong(buf, 0, id); return HexUtil.toString(buf); }
java
public synchronized boolean clearIfNotInUse() { if (tc.isEntryEnabled()) Tr.entry(tc, "clearIfNotInUse",new Object[]{_recoveryId, _recoveredInUseCount}); boolean cleared = false; if (_loggedToDisk && _recoveredInUseCount == 0) { try { if (tc....
java
public boolean recover(ClassLoader cl, Xid[] xids, byte[] failedStoken, byte[] cruuid, int restartEpoch) { if (tc.isDebugEnabled()) Tr.debug(tc, "recover", new Object[] {this, cl, xids, failedStoken, cruuid, restartEpoch}); decrementCount(); return true; }
java
private void getFilesForFeature(File installRoot, final Set<String> absPathsForLibertyContent, final Set<String> absPathsForLibertyBundles, final Set<String> absPathsForLibertyLocalizations, ...
java
public void addFileResource(File installRoot, final Set<String> content, String locString) { String[] locs; if (locString.contains(",")) { locs = locString.split(","); } else { locs = new String[] { locString }; } for (Stri...
java
private void copy(OutputStream out, File in) throws IOException { FileInputStream inStream = null; try { inStream = new FileInputStream(in); byte[] buffer = new byte[4096]; int len; while ((len = inStream.read(buffer)) != -1) { out.write(b...
java
public static String getDataSourceIdentifier(WSJdbcWrapper jdbcWrapper) { DSConfig config = jdbcWrapper.dsConfig.get(); return config.jndiName == null ? config.id : config.jndiName; }
java
public static String getSql(Object jdbcWrapper) { if (jdbcWrapper instanceof WSJdbcPreparedStatement) // also includes WSJdbcCallableStatement return ((WSJdbcPreparedStatement) jdbcWrapper).sql; else if (jdbcWrapper instanceof WSJdbcResultSet) return ((WSJdbcResultSet) jdbcWrappe...
java
public static void handleStaleStatement(WSJdbcWrapper jdbcWrapper) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) Tr.event(tc, "Encountered a Stale Statement: " + jdbcWrapper); if (jdbcWrapper instanceof WSJdbcObject) try { WSJdbcConnection co...
java
public static SQLException mapException(WSJdbcWrapper jdbcWrapper, SQLException sqlX) { Object mapper = null; WSJdbcConnection connWrapper = null; if (jdbcWrapper instanceof WSJdbcObject) { // Use the connection and managed connection. connWrapper = (WSJdbcConnection) ((...
java
@Trivial public static boolean validLocalHostName(String hostName) { InetAddress addr = findLocalHostAddress(hostName, PREFER_IPV6); return addr != null; }
java
public static ManifestInfo parseManifest(JarFile jar) throws RepositoryArchiveException, RepositoryArchiveIOException { String prov = null; // Create the WLPInformation and populate it Manifest mf = null; try { mf = jar.getManifest(); } catch (IOException e) { ...
java
void timerLoop() throws ResourceException { final String methodName = "timerLoop"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } checkMEs(getMEsToCheck()); if (TraceComponent.isAnyTracingEna...
java
void checkMEs(JsMessagingEngine[] MEList) throws ResourceException { final String methodName = "checkMEs"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object[] { MEList }); } // Filter out any non...
java
void kickOffTimer() throws UnavailableException { final String methodName = "kickOffTimer"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } synchronized (_timerLock) { // Another ti...
java
private void createSingleListener(final SibRaMessagingEngineConnection connection) throws ResourceException { final String methodName = "createSingleListener"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, connection); ...
java
private void createMultipleListeners(final SibRaMessagingEngineConnection connection) throws ResourceException { final String methodName = "createMultipleListeners"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, connect...
java
boolean checkIfRemote(SibRaMessagingEngineConnection conn) { final String methodName = "checkIfRemote"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object[] { conn }); } String meName = conn.getCo...
java
void dropNonPreferredConnections() { final String methodName = "dropNonPreferredConnections"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } // If we are connected to a non preferred then we will NEVE...
java
void dropRemoteConnections() { final String methodName = "dropRemoteConnections"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } if (_connectedRemotely) { closeConnections(); ...
java
void closeConnections() { final String methodName = "closeConnections"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } synchronized (_connections) { Collection<SibRaMessagingEngine...
java
@Override public synchronized void messagingEngineStopping( final JsMessagingEngine messagingEngine, final int mode) { final String methodName = "messagingEngineStopping"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) ...
java
void dropConnection(SibRaMessagingEngineConnection connection, boolean isSessionError, boolean retryImmediately, boolean alreadyClosed) { String methodName = "dropConnection"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodNam...
java
@Override public void messagingEngineDestroyed(JsMessagingEngine messagingEngine) { final String methodName = "messagingEngineDestroyed"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); } ...
java
private boolean validMagicNumber(byte[] magicNumberBuffer) { if (tc.isEntryEnabled()) Tr.entry(tc, "validMagicNumber", new java.lang.Object[] { RLSUtils.toHexString(magicNumberBuffer, RLSUtils.MAX_DISPLAY_BYTES), this }); boolean incorrectByteDetected = false; int currentByte = ...
java
public long date() { if (tc.isEntryEnabled()) Tr.entry(tc, "date", this); if (tc.isEntryEnabled()) Tr.exit(tc, "date", new Long(_date)); return _date; }
java
public long firstRecordSequenceNumber() { if (tc.isEntryEnabled()) Tr.entry(tc, "firstRecordSequenceNumber", this); if (tc.isEntryEnabled()) Tr.exit(tc, "firstRecordSequenceNumber", new Long(_firstRecordSequenceNumber)); return _firstRecordSequenceNumber; }
java
public String serviceName() { if (tc.isEntryEnabled()) Tr.entry(tc, "serviceName", this); if (tc.isEntryEnabled()) Tr.exit(tc, "serviceName", _serviceName); return _serviceName; }
java
public int serviceVersion() { if (tc.isEntryEnabled()) Tr.entry(tc, "serviceVersion", this); if (tc.isEntryEnabled()) Tr.exit(tc, "serviceVersion", new Integer(_serviceVersion)); return _serviceVersion; }
java
public String logName() { if (tc.isEntryEnabled()) Tr.entry(tc, "logName", this); if (tc.isEntryEnabled()) Tr.exit(tc, "logName", _logName); return _logName; }
java
public byte[] getServiceData() { if (tc.isEntryEnabled()) Tr.entry(tc, "getServiceData", this); if (tc.isEntryEnabled()) Tr.exit(tc, "getServiceData", RLSUtils.toHexString(_serviceData, RLSUtils.MAX_DISPLAY_BYTES)); return _serviceData; }
java
public void setServiceData(byte[] serviceData) { if (tc.isEntryEnabled()) Tr.entry(tc, "setServiceData", new java.lang.Object[] { RLSUtils.toHexString(serviceData, RLSUtils.MAX_DISPLAY_BYTES), this }); _serviceData = serviceData; if (tc.isEntryEnabled()) Tr.exit(tc,...
java
public boolean compatible() { if (tc.isEntryEnabled()) Tr.entry(tc, "compatible", this); if (tc.isEntryEnabled()) Tr.exit(tc, "compatible", new Boolean(_compatible)); return _compatible; }
java
public boolean valid() { boolean valid = true; if (tc.isEntryEnabled()) Tr.entry(tc, "valid", this); if (_status == STATUS_INVALID) valid = false; if (tc.isEntryEnabled()) Tr.exit(tc, "valid", new Boolean(valid)); return valid; }
java
public int status() { if (tc.isEntryEnabled()) Tr.entry(tc, "status", this); if (tc.isEntryEnabled()) Tr.exit(tc, "status", new Integer(_status)); return _status; }
java
public void reset() { if (tc.isEntryEnabled()) Tr.entry(tc, "reset", this); _status = STATUS_ACTIVE; _date = 0; _firstRecordSequenceNumber = 0; _serverName = null; _serviceName = null; _serviceVersion = 0; _logName = null; _variabl...
java
public void changeStatus(int newStatus) { if (tc.isEntryEnabled()) Tr.entry(tc, "changeStatus", new java.lang.Object[] { this, new Integer(newStatus) }); _status = newStatus; if (tc.isEntryEnabled()) Tr.exit(tc, "changeStatus"); }
java
public void keypointStarting(long nextRecordSequenceNumber) { if (tc.isEntryEnabled()) Tr.entry(tc, "keypointStarting", new Object[] { this, new Long(nextRecordSequenceNumber) }); GregorianCalendar currentCal = new GregorianCalendar(); Date currentDate = currentCal.getTime(); ...
java
public void keypointComplete() { if (tc.isEntryEnabled()) Tr.entry(tc, "keypointComplete", this); _status = STATUS_ACTIVE; if (tc.isEntryEnabled()) Tr.exit(tc, "keypointComplete"); }
java
static String statusToString(int status) { String result = null; if (status == STATUS_INACTIVE) { result = "INACTIVE"; } else if (status == STATUS_ACTIVE) { result = "ACTIVE"; } else if (status == STATUS_KEYPOINTING) { ...
java
public TransactionCommon registerInBatch() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "registerInBatch"); _readWriteLock.lock(); // Register as a reader synchronized(this) // lock the state against other readers { if(_currentTran == null) ...
java
public void messagesAdded(int msgCount, BatchListener listener) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "messagesAdded","msgCount="+msgCount+",listener="+listener); boolean completeBatch = false; try { synchroniz...
java
public void completeBatch(boolean force, BatchListener finalListener) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "completeBatch","force="+force+",finalListener="+finalListener); _readWriteLock.lockExclusive(); // Lock the batchHan...
java
public void alarm (Object alarmContext) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "alarm", alarmContext); synchronized(this) { _alarm = null; } try { completeBatch(true); } catch(SIException e) { //No FFDC code needed SibTr.e...
java
private void parseIDFromURL(RequestMessage request) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Looking for ID in URL"); } String url = request.getRawRequestURI(); String target = getSessionConfig().getURLRewritingMarker(); URLPa...
java
public static String encodeURL(String url, SessionInfo info) { // could be /path/page#fragment?query // could be /page/page;session=existing#fragment?query // where fragment and query are both optional HttpSession session = info.getSession(); if (null == session) { r...
java
public static String stripURL(String url, SessionInfo info) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Removing any session id from [" + url + "]"); } String target = info.getSessionConfig().getURLRewritingMarker(); URLParser parser = n...
java
private void parseIDFromCookies(RequestMessage request) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Looking for ID in cookies"); } Enumeration<String> list = request.getHeaders("Cookie"); while (list.hasMoreElements()) { Stri...
java
public static Cookie encodeCookie(SessionInfo info) { // create a cookie using the configuration information HttpSession session = info.getSession(); SessionConfig config = info.getSessionConfig(); Cookie cookie = new Cookie( config.getIDName(), ...
java
public HttpSession getSession(boolean create) { if (null != this.mySession) { if (this.mySession.isInvalid()) { this.mySession = null; } else { return this.mySession; } } this.mySession = mgr.getSession(this, create); re...
java
public int get_searchScope() { int searchScope = SearchControls.OBJECT_SCOPE; String scopeBuf = get_scope(); if (scopeBuf != null) { if (scopeBuf.compareToIgnoreCase("base") == 0) { searchScope = SearchControls.OBJECT_SCOPE; } else if (scopeBuf.compareToIg...
java
public PersistenceUnitTransactionType getTransactionType() { // Convert this TransactionType from the class defined in JAXB // (com.ibm.ws.jpa.pxml21.PersistenceUnitTransactionType) to JPA // (javax.persistence.spi.PersistenceUnitTransactionType). PersistenceUnitTransactionType ...
java
public static boolean copyModuleMetaDataSlot(MetaDataEvent<ModuleMetaData> event, MetaDataSlot slot) { Container container = event.getContainer(); MetaData metaData = event.getMetaData(); try { // For now, we just need to copy from WebModuleInfo, and ClientModuleInfo // ...
java
private static Object injectAndPostConstruct(Object injectionProvider, Class Klass, List injectedBeanStorage) { Object instance = null; if (injectionProvider != null) { try { Object managedObject = _FactoryFinderProviderFactory.INJECTION_PROVIDER_INJE...
java
private Collection<String> getCollectionFromSpaceSplitString(String stringValue) { //@special handling for @all, @none, @form and @this if (stringValue.equals(VAL_FORM)) { return VAL_FORM_LIST; } else if (stringValue.equals(VAL_ALL)) { retur...
java
public static void traceSetTxCommon(int opType, String txId, String desc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(TxLifeCycle_Set_Tx_Type_Str).append(DataDelimiter) ...
java
public static void traceCommon(int opType, String txId, String desc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(TxLifeCycle_State_Type_Str).append(DataDelimiter) ...
java
synchronized private JaspiConfig readConfigFile(final File configFile) throws PrivilegedActionException { if (tc.isEntryEnabled()) Tr.entry(tc, "readConfigFile", new Object[] { configFile }); if (configFile == null) { // TODO handle persistence // String msg = Message...
java
synchronized private void writeConfigFile(final JaspiConfig jaspiConfig) { if (tc.isEntryEnabled()) Tr.entry(tc, "writeConfigFile", new Object[] { jaspiConfig }); if (configFile == null) { // TODO handle persistence //String msg = MessageFormatHelper.getFormattedMessa...
java
public ProviderAuthenticationResult authenticate(HttpServletRequest req, HttpServletResponse res, ConvergedClientConfig clientConfig) { ProviderAuthenticationResult oidcResult = null; if (!isEndpointValid(clientConfig)) { return new ProviderAuthenticationResult(AuthR...
java
public String getRedirectUrlFromServerToClient(String clientId, String contextPath, String redirectToRPHostAndPort) { String redirectURL = null; if (redirectToRPHostAndPort != null && redirectToRPHostAndPort.length() > 0) { try { final String fHostPort = redirectToRPHostAndPo...
java
@FFDCIgnore({ IndexOutOfBoundsException.class }) public boolean validateReqParameters(ConvergedClientConfig clientConfig, Hashtable<String, String> reqParameters, String cookieValue) { boolean validCookie = true; String encoded = null; String cookieName = "WASOidcCode"; String reques...
java
public Boolean verifyState(HttpServletRequest req, HttpServletResponse res, String responseState, ConvergedClientConfig clientConfig) { if (responseState.length() < OidcUtil.STATEVALUE_LENGTH) { return false; // the state does not even match the length, the verification failed } ...
java
void update(Dictionary<String, Object> props) { if (deleted) { return; } final String instancePid = (String) props.get("service.pid"); final String instanceId = (String) props.get("id"); if (instanceId == null) { Tr.error(tc, "cls.library.id.missing"); ...
java
public void mapFunction( String prefix, String fnName, final Class c, final String methodName, final Class[] args ) { //192474 start //We can get in to this method with null parameters if a JSP was compiled against the jsp-2.3 feature but running in a jsp-2.2 server. //This check is needed f...
java
void add(int event) { int b = bits.addAndGet(event); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "add " + event + ", polling state: " + b); }
java
boolean addAndCheckIfReady(int event) { int b = bits.addAndGet(event); boolean isReady = b == READY_WITHOUT_SIGNAL || b == READY_WITH_UNNECESSARY_SIGNAL || b == READY_WITH_SIGNAL; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "addAndCheckIfReady ...
java
public int getTransactionTimeout() throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getTransactionTimeout"); int timeout = 0; try { CommsByteBuffer request = getCommsByteBuffer(); request.putInt(...
java
private HashMap<Xid, SIXAResourceProxy> getLinkLevelXAResourceMap() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getLinkLevelXAResourceMap"); HashMap<Xid, SIXAResourceProxy> map = ((ClientLinkLevelState)getConversation().getLinkLevelAttachment()).getXidToXARes...
java
private String replaceCharacters(String name) { name = name.replaceAll("&gt;", ">"); name = name.replaceAll("&lt;", "<"); name = name.replaceAll("&amp;", "&"); name = name.replaceAll("<\\%", "<%"); name = name.replaceAll("%\\>", "%>"); return name; }
java
private boolean handleCaseSensitivityCheck(String path, boolean checkWEBINF) throws IOException { if (System.getSecurityManager() != null) { final String tmpPath = path; final boolean tmpCheckWEBINF = checkWEBINF; //PK81387 try { return ((Boolean) AccessContro...
java
public final void nameSpace (String namespace) { if (namespace == null || namespace.equals("")) { _namespace = ""; } else { _namespace = namespace + ":"; } }
java
public final void write(Throwable e) throws IOException { indent(); newLine(); write(e.toString()); StackTraceElement[] elements = e.getStackTrace(); for (int i = 0; i < elements.length; i++) { newLine(); write(elements[i].toString()); } Throwable cause = e.getCause(); if ...
java
public PublicKey getPublicKeyFromJwk(String kid, String x5t, boolean useSystemPropertiesForHttpClientConnections) throws PrivilegedActionException, IOException, KeyStoreException, InterruptedException { return getPublicKeyFromJwk(kid, x5t, null, useSystemPropertiesForHttpClientConnections); }
java
@FFDCIgnore({ KeyStoreException.class }) public PublicKey getPublicKeyFromJwk(String kid, String x5t, String use, boolean useSystemPropertiesForHttpClientConnections) throws PrivilegedActionException, IOException, KeyStoreException, InterruptedException { PublicKey key = null; KeyStoreEx...
java
@FFDCIgnore({ PrivilegedActionException.class }) protected InputStream getInputStream(final File f, String fileSystemSelector, String location, String classLoadingSelector ) throws IOException { // check file system first like we used to do if (f != null) { InputStream is = null; ...
java
public boolean parseJwk(String keyText, FileInputStream inputStream, JWKSet jwkset, String signatureAlgorithm) { boolean bJwk = false; if (keyText != null) { bJwk = parseKeyText(keyText, locationUsed, jwkset, signatureAlgorithm); } else if (inputStream != null) { String ...
java
@Override public CompletableFuture<T> newIncompleteFuture() { if (JAVA8) return new ManagedCompletionStage<T>(new CompletableFuture<T>(), defaultExecutor, null); else return new ManagedCompletionStage<T>(defaultExecutor); }
java
@Override @SuppressWarnings("hiding") @Trivial <T> CompletableFuture<T> newInstance(CompletableFuture<T> completableFuture, Executor managedExecutor, FutureRefExecutor futureRef) { return new ManagedCompletionStage<T>(completableFuture, managedExecutor, futureRef); }
java
public void becomeCloneOf(ManagedObject other) { final String methodName = "becomeCloneOf"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, other); //!! See...
java
private boolean setState(State newState) { switch (newState) { case DEPLOYED: return changeState(State.DEPLOYING, State.DEPLOYED); case DEPLOYING: //can move from either UNDEPLOYED or FAILED into DEPLOYING state return (changeState(State.UN...
java
Event createFailedEvent(Throwable t) { synchronized (terminated) { if (terminated.get()) { return null; } if (setState(State.FAILED)) { installer.removeWabFromEligibleForCollisionResolution(this); installer.attemptRedeployOfPrev...
java
Event createFailedEvent(String collisionContext, long[] cIds) { synchronized (terminated) { if (terminated.get()) { return null; } if (setState(State.FAILED)) return createEvent(State.FAILED, null, collisionContext, cIds); } ret...
java
@Override @Trivial public WAB addingBundle(Bundle bundle, BundleEvent event) { //the bundle is in STARTING | ACTIVE state because of our state mask //only action work for the bundle represented by this WAB. if (bundle.getBundleId() == wabBundleId) { //sync lock inside bundle...
java
public static String identityToString(Object o) { return o == null ? null : o.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(o)); }
java