code
stringlengths
73
34.1k
label
stringclasses
1 value
private HttpURLConnection createHeadConnection(String path) throws IOException { HttpURLConnection connection = createHttpURLConnectionToMassive(path); connection.setRequestMethod("HEAD"); return connection; }
java
private void deleteAsset(String id) throws IOException, RequestFailureException { HttpURLConnection connection = createHttpURLConnectionToMassive("/assets/" + id); connection.setRequestMethod("DELETE"); testResponseCode(conn...
java
private void writeMultiPart(final String assetId, final AttachmentSummary attSummary, HttpURLConnection connection) throws IOException, BadVersionException, RequestFailureException { final File fileToWrite = attSummary.getFile(); String boundary = "----------------------...
java
@Override public InputStream getAttachment(final Asset asset, final Attachment attachment) throws IOException, BadVersionException, RequestFailureException { // accept license for type CONTENT HttpURLConnection connection; if (attachment.getType() == AttachmentType.CONTENT) { co...
java
public Attachment getAttachmentMetaData(String assetId, String attachmentId) throws IOException, BadVersionException, RequestFailureException { // At the moment can only get all attachments Asset ass = getAsset(assetId); List<Attachment> allAttachments = ass.getAttachments(); for (Attach...
java
@Override public void deleteAttachment(final String assetId, final String attachmentId) throws IOException, RequestFailureException { HttpURLConnection connection = createHttpURLConnectionToMassive("/assets/" + assetId + "/attachments/"...
java
@Override public void deleteAssetAndAttachments(final String assetId) throws IOException, RequestFailureException { Asset ass = getUnverifiedAsset(assetId); List<Attachment> attachments = ass.getAttachments(); if (attachments != null) { for (Attachment attachment : attachments) {...
java
@Override public Asset getAsset(final String assetId) throws IOException, BadVersionException, RequestFailureException { HttpURLConnection connection = createHttpURLConnectionToMassive("/assets/" + assetId); connection.setReques...
java
@Override public void updateState(final String assetId, final StateAction action) throws IOException, RequestFailureException { StateUpdateAction newState = new StateUpdateAction(action); HttpURLConnection connection = createHttpURLConnectionToMassive("/assets/" ...
java
private URL createURL(final String urlString) throws MalformedURLException { URL url; try { url = AccessController.doPrivileged(new PrivilegedExceptionAction<URL>() { @Override public URL run() throws MalformedURLException { return new UR...
java
@Override public Attachment updateAttachment(String assetId, AttachmentSummary summary) throws IOException, BadVersionException, RequestFailureException { // First find the attachment to update Asset ass = getAsset(assetId); List<Attachment> attachments = ass.getAttachments(); if (a...
java
private void clearInputStream(HttpURLConnection conn) { InputStream is = null; byte[] buffer = new byte[1024]; try { is = conn.getInputStream(); while (is.read(buffer) != -1) { continue; } } catch (IOException e) { // Don't ...
java
public static String getCharset(final String contentType) { // Default to UTF-8 String charset = "UTF-8"; try { // Content type is in the form: // Content-Type: text/html; charset=utf-8 // Where they can be lots of params separated by ; characters ...
java
private String parseErrorObject(String errorObject) { if (errorObject == null) { return null; } try { // Just use JsonObject parse directly instead of DataModelSerializer as we only want one attribute InputStream inputStream = new ByteArrayInputStream(errorObj...
java
public static void writeValue(OutputStream stream, Object pojo) throws IOException { DataModelSerializer.serializeAsStream(pojo, stream); }
java
public static List<Asset> readValues(InputStream inputStream) throws IOException { return DataModelSerializer.deserializeList(inputStream, Asset.class); }
java
public static Asset readValue(InputStream inputStream) throws IOException, BadVersionException { return DataModelSerializer.deserializeObject(inputStream, Asset.class); }
java
public static <T> T readValue(InputStream inputStream, Class<T> type) throws IOException, BadVersionException { return DataModelSerializer.deserializeObject(inputStream, type); }
java
public static <T> List<T> readValues(InputStream inputStream, Class<T> type) throws IOException { return DataModelSerializer.deserializeList(inputStream, type); }
java
public static String getHomeBeanClassName(EnterpriseBean enterpriseBean, boolean isPost11DD) // d114199 { String packageName = null; String homeInterfaceName = getHomeInterfaceName(enterpriseBean); // LIDB2281.24.2 made several changes to code below, to accommodate case // where ne...
java
public static String getConcreteBeanClassName(EnterpriseBean enterpriseBean) { String beanClassName = enterpriseBean.getEjbClassName(); String packageName = packageName(beanClassName); String beanName = encodeBeanInterfacesName(enterpriseBean, true, false, false, false); // d147734 ...
java
public static final String updateFilenameHashCode(EnterpriseBean enterpriseBean, String oldName) { String newName = null; int len = oldName.length(); int last_ = (len > 9 && (oldName.charAt(len - 9) == '_')) ? len - 9 : -1; // input file name must have a trailing "_" follows by 8 hex...
java
public String getWebServiceEndpointProxyClassName() { StringBuilder result = new StringBuilder(); // Use the package of the EJB implementation. String packageName = packageName(ivBeanClass); if (packageName != null) { result.append(packageName); result.appen...
java
public void processMessage(JsMessage jsMsg) throws SIResourceException { if (tc.isEntryEnabled()) SibTr.entry(tc, "processMessage", new Object[] { jsMsg }); int priority = jsMsg.getPriority().intValue(); Reliability reliability = jsMsg.getReliability(); SIBUuid12 streamID = js...
java
private void activeRequestIntropectors(PrintWriter writer) { writer.println("\n------------------------------------------------------------------------------"); writer.println(" Active Requests"); writer.println("----------------------------------------------------------------...
java
private void transformDescriptorIntrospectors(PrintWriter writer) { Map<String, RequestProbeTransformDescriptor> registeredTransformDescriptors = RequestProbeBCIManagerImpl.getRequestProbeTransformDescriptors(); List<String> transformDescriptorRefs = new ArrayList<String>() {{add("Transform Descr...
java
public void instrumentWithProbes(Collection<Class<?>> classes) { for (Class<?> clazz : classes) { try { instrumentation.retransformClasses(clazz); } catch (Throwable t) { } } }
java
public final JsMessageHandle createJsMessageHandle(SIBUuid8 uuid ,long value ) throws NullPointerException { if (uuid == null) { throw new NullPointe...
java
@Override public Principal getCallerPrincipal() { EJBSecurityCollaborator<?> securityCollaborator = container.ivSecurityCollaborator; if (securityCollaborator == null) { return NullSecurityCollaborator.UNAUTHENTICATED; } return getCallerPrincipal(securityColl...
java
HandleList getHandleList(boolean create) // d662032 { if (connectionHandleList == null && create) { connectionHandleList = new HandleList(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getHandleList: created " + connectionHan...
java
HandleListInterface reAssociateHandleList() // d662032 throws CSIException { HandleListInterface hl; if (connectionHandleList == null) { hl = HandleListProxy.INSTANCE; } else { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled(...
java
void parkHandleList() // d662032 { if (connectionHandleList != null) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "parkHandleList: " + connectionHandleList); try {...
java
protected final void destroyHandleList() // d662032 { if (connectionHandleList != null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "destroyHandleList: destroying " + connectionHandleList); connectionHandleList.componentDest...
java
protected BeanOCallDispatchToken callDispatchEventListeners (int dispatchEventCode, BeanOCallDispatchToken token) { DispatchEventListenerManager dispatchEventListenerManager = container.ivDispatchEventListenerManager; // d646413.2 DispatchEventListenerCookie[...
java
@Override public Timer createCalendarTimer(ScheduleExpression schedule, TimerConfig timerConfig) { Serializable info = timerConfig == null ? null : timerConfig.getInfo(); boolean persistent = timerConfig == null || timerConfig.isPersistent(); boolean isTraceOn = TraceComponent.isAnyTrac...
java
public SIMessageHandle restoreFromString(String data) throws IllegalArgumentException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "restoreFromString"); if ((data == null) || data.equals("")) { String badValueType; if (data==null) {badValueType = "NUL...
java
protected Converter createConverter(FaceletContext ctx) throws FacesException, ELException, FaceletException { return ctx.getFacesContext().getApplication().createConverter(this.getConverterId(ctx)); }
java
public static JmsBodyType getBodyType(String format) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getBodyType"); JmsBodyType result = null; if (format.equals(SIApiConstants.JMS_FORMAT_BYTES)) result = BYTES; else if (format.equals(SIApiConstants.JMS_FORMAT_T...
java
public final static JmsBodyType getJmsBodyType(Byte aValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue); return set[aValue.intValue()]; }
java
final void delistRRSXAResource(XAResource xaResource) throws Exception { RRSXAResourceFactory xaFactory = (RRSXAResourceFactory) pm.connectorSvc.rrsXAResFactorySvcRef.getService(); // Make sure that the bundle is active. if (xaFactory == null) { throw new IllegalStateException("Nati...
java
final XAResource enlistRRSXAResource(int recoveryId, int branchCoupling) throws Exception { RRSXAResourceFactory xaFactory = (RRSXAResourceFactory) pm.connectorSvc.rrsXAResFactorySvcRef.getService(); // Make sure that the bundle is active. if (xaFactory == null) { throw new IllegalS...
java
public ConnectionManager getConnectionManager() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(this, tc, "Connection manager is " + cm + " for managed connection " + this); if (cm == null && pm != null) { Tr.debug(this, tc, "Connection pool ...
java
protected void transactionComplete() { if (state != STATE_TRAN_WRAPPER_INUSE) { IllegalStateException e = new IllegalStateException("transactionComplete: illegal state exception. State = " + getStateString() + " MCW = " + mcWrapperObje...
java
protected boolean involvedInTransaction() { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (state == STATE_TRAN_WRAPPER_INUSE) { if (isTracingEnabled && tc.isDebugEnabled()) { Tr.debug(this, tc, "involvedInTransaction: true"); } ...
java
@Override public boolean hasFatalErrorNotificationOccurred(int fatalErrorNotificationTime) { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); /* * I have changed this from using a long based on a currentTimeMillis * to an int value. * * By ...
java
@Override public void setDestroyConnectionOnReturn() { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingEnabled && tc.isEntryEnabled()) { Tr.entry(this, tc, "setDestroyConnectionOnReturn"); } --fatalErrorValue; if (isTracingEn...
java
public void resetCoordinator() { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingEnabled && tc.isDebugEnabled()) { Tr.debug(this, tc, "Resetting uow coordinator to null"); } uowCoord = null; }
java
public void markTransactionError() { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingEnabled && tc.isDebugEnabled()) { Tr.debug(this, tc, "TransactionError occurred on MCWrapper:" + toString()); } _transactionErrorOccurred = true; }
java
public void clearHandleList() { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingEnabled && tc.isDebugEnabled()) { Tr.debug(this, tc, "Clear the McWrapper handlelist for the following MCWrapper: " + this); } // since we know we are only ...
java
public boolean abortMC() { boolean trace = TraceComponent.isAnyTracingEnabled(); if (!(mc instanceof WSManagedConnection)) { if (trace && tc.isDebugEnabled()) Tr.debug(tc, "abortMC", "Skipping MC abort because MC is not an instance of WSManagedConnection"); return...
java
private Bucket getOrCreateBucketForKey(Object key) { int index = getBucketIndexForKey(key); // Double-checked locking. Safe since buckets do not initialize any state // until they are synchronized by the caller. d739870 Bucket bucket = buckets[index]; i...
java
private String getProp(Map<Object, Object> props, String key) { String value = (String) props.get(key); if (null == value) { value = (String) props.get(key.toLowerCase()); } return (null != value) ? value.trim() : null; }
java
private void parsePersistence(Map<Object, Object> props) { parseKeepAliveEnabled(props); if (isKeepAliveEnabled()) { parseMaxPersist(props); } }
java
private void parseMaxPersist(Map<Object, Object> props) { // -1 means unlimited // 0..1 means 1 // X means X Object value = props.get(HttpConfigConstants.PROPNAME_MAX_PERSIST); if (null != value) { try { this.maxPersistRequest = minLimit(convertInteger...
java
private void parseOutgoingVersion(Map<Object, Object> props) { String value = getProp(props, HttpConfigConstants.PROPNAME_OUTGOING_VERSION); if ("1.0".equals(value)) { this.outgoingHttpVersion = VersionValues.V10; if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {...
java
private void parseBufferType(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_DIRECT_BUFF); if (null != value) { this.bDirectBuffers = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.ev...
java
private void parseOutgoingBufferSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_OUTGOING_HDR_BUFFSIZE); if (null != value) { try { this.outgoingHdrBuffSize = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_BUFFER_SIZE, HttpCon...
java
private void parseIncomingHdrBufferSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_INCOMING_HDR_BUFFSIZE); if (null != value) { try { this.incomingHdrBuffSize = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_BUFFER_SIZE, Http...
java
private void parseIncomingBodyBufferSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_INCOMING_BODY_BUFFSIZE); if (null != value) { try { this.incomingBodyBuffSize = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_BUFFER_SIZE, H...
java
private void parsePersistTimeout(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_PERSIST_TIMEOUT); if (null != value) { try { this.persistTimeout = TIMEOUT_MODIFIER * minLimit(convertInteger(value), HttpConfigConstants.MIN_TIMEOUT); ...
java
private void parseReadTimeout(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_READ_TIMEOUT); if (null != value) { try { this.readTimeout = TIMEOUT_MODIFIER * minLimit(convertInteger(value), HttpConfigConstants.MIN_TIMEOUT); i...
java
private void parseWriteTimeout(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_WRITE_TIMEOUT); if (null != value) { try { this.writeTimeout = TIMEOUT_MODIFIER * minLimit(convertInteger(value), HttpConfigConstants.MIN_TIMEOUT); ...
java
private void parseByteCacheSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_BYTE_CACHE_SIZE); if (null != value) { try { this.byteCacheSize = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_BYTE_CACHE_SIZE, HttpConfigConstants....
java
private void parseDelayedExtract(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_EXTRACT_VALUE); if (null != value) { this.bExtractValue = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { ...
java
private void parseBinaryTransport(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_BINARY_TRANSPORT); if (null != value) { this.bBinaryTransport = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { ...
java
private void parseLimitFieldSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_LIMIT_FIELDSIZE); if (null != value) { try { this.limitFieldSize = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_LIMIT_FIELDSIZE, HttpConfigConstant...
java
private void parseLimitNumberHeaders(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_LIMIT_NUMHEADERS); if (null != value) { try { this.limitNumHeaders = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_LIMIT_NUMHEADERS, HttpConfigC...
java
private void parseLimitNumberResponses(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_LIMIT_NUMBER_RESPONSES); if (null != value) { try { int size = convertInteger(value); if (HttpConfigConstants.UNLIMITED == size) { ...
java
private void parseLimitMessageSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_MSG_SIZE_LIMIT); if (null != value) { try { this.limitMessageSize = convertLong(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEvent...
java
private void parseAccessLog(Map<Object, Object> props) { String id = (String) props.get(HttpConfigConstants.PROPNAME_ACCESSLOG_ID); if (id != null) { AtomicReference<AccessLog> aLog = HttpEndpointImpl.getAccessLogger(id); if (aLog != null) { this.accessLogger = a...
java
private void parseRemoteIp(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_REMOTE_IP); if (null != value) { this.useForwardingHeaders = convertBoolean(value); if (this.useForwardingHeaders && (TraceComponent.isAnyTracingEnabled()) && (tc.isEve...
java
private void parseAllowRetries(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_ALLOW_RETRIES); if (null != value) { this.bAllowRetries = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr...
java
private void parseHeaderValidation(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_HEADER_VALIDATION); if (null != value) { this.bHeaderValidation = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { ...
java
private void parseJITOnlyReads(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_JIT_ONLY_READS); if (null != value) { this.bJITOnlyReads = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { T...
java
private void parseStrictURLFormat(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_STRICT_URL_FORMAT); if (null != value) { this.bStrictURLFormat = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { ...
java
private void parseServerHeader(Map<Object, Object> props) { // @PK15848 String value = getProp(props, HttpConfigConstants.PROPNAME_SERVER_HEADER_VALUE); if (null == value || "".equals(value)) { // due to security change, do not default value in Server header. // PM87013 Start ...
java
private void parseDateHeaderRange(Map<Object, Object> props) { // @313642 Object value = props.get(HttpConfigConstants.PROPNAME_DATE_HEADER_RANGE); if (null != value) { try { this.lDateHeaderRange = minLimit(convertLong(value), 0L); if (TraceComponent....
java
private void parseCookieUpdate(Map<Object, Object> props) { //This property needed to be documented using a new name because //the original property contains a banned word for metatype: 'config' //This change will verify if either (or both) original/documented properties //are set. The i...
java
private void parseHeaderChangeLimit(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_HEADER_CHANGE_LIMIT); if (null != value) { try { this.headerChangeLimit = convertInteger(value); if (TraceComponent.isAnyTracingEnabled() && ...
java
private void parseRequestSmugglingProtection(Map<Object, Object> props) { // PK53193 - allow this to be disabled Object value = props.get(HttpConfigConstants.PROPNAME_ENABLE_SMUGGLING_PROTECTION); if (null != value) { this.bEnableSmugglingProtection = convertBoolean(value); ...
java
private void parseAutoDecompression(Map<Object, Object> props) { // PK41619 - allow this to be turned off Object value = props.get(HttpConfigConstants.PROPNAME_AUTODECOMPRESSION); if (null != value) { this.bAutoDecompression = convertBoolean(value); if (TraceComponent.isA...
java
private void parsev0CookieDateRFC1123compat(Map<?, ?> props) { Object value = props.get(HttpConfigConstants.PROPNAME_V0_COOKIE_RFC1123_COMPAT); if (null != value) { this.v0CookieDateRFC1123compat = convertBoolean(value); } if (TraceComponent.isAnyTracingEnabled() && tc.isEv...
java
private void parseSkipCookiePathQuotes(Map<?, ?> props) { //738893 - Skip adding the quotes to the cookie path attribute String value = (String) props.get(HttpConfigConstants.PROPNAME_SKIP_PATH_QUOTE); if (null != value) { this.skipCookiePathQuotes = convertBoolean(value); ...
java
private void parseDoNotAllowDuplicateSetCookies(Map<?, ?> props) { //PI31734 - prevent multiple Set-Cookies with the same name String value = (String) props.get(HttpConfigConstants.PROPNAME_DO_NOT_ALLOW_DUPLICATE_SET_COOKIES); if (null != value) { this.doNotAllowDuplicateSetCookies =...
java
private void parseWaitForEndOfMessage(Map props) { //PI11176 String value = (String) props.get(HttpConfigConstants.PROPNAME_WAIT_FOR_END_OF_MESSAGE); if (null != value) { this.waitForEndOfMessage = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEv...
java
private void parseRemoveCLHeaderInTempStatusRespRFC7230compat(Map props) { //PI35277 String value = (String) props.get(HttpConfigConstants.REMOVE_CLHEADER_IN_TEMP_STATUS_RFC7230_COMPAT); if (null != value) { this.removeCLHeaderInTempStatusRespRFC7230compat = convertBoolean(value); ...
java
private void parsePreventResponseSplit(Map<?, ?> props) { //PI45266 String value = (String) props.get(HttpConfigConstants.PROPNAME_PREVENT_RESPONSE_SPLIT); if (null != value) { this.preventResponseSplit = convertBoolean(value); if ((TraceComponent.isAnyTracingEnabled()) &...
java
private void parseAttemptPurgeData(Map props) { //PI11176 String value = (String) props.get(HttpConfigConstants.PROPNAME_PURGE_DATA_DURING_CLOSE); if (null != value) { this.attemptPurgeData = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEna...
java
private void parseThrowIOEForInboundConnections(Map<?, ?> props) { //PI57542 Object value = props.get(HttpConfigConstants.PROPNAME_THROW_IOE_FOR_INBOUND_CONNECTIONS); if (null != value) { this.throwIOEForInboundConnections = convertBoolean(value); if ((TraceComponent.isAn...
java
private void parsePurgeRemainingResponseBody(Map<?, ?> props) { String purgeRemainingResponseProperty = AccessController.doPrivileged(new java.security.PrivilegedAction<String>() { @Override public String run() { return (System.getProperty(HttpConfigConstants.PROPNAME_PU...
java
private void parseProtocolVersion(Map<?, ?> props) { Object protocolVersionProperty = props.get(HttpConfigConstants.PROPNAME_PROTOCOL_VERSION); if (null != protocolVersionProperty) { String protocolVersion = ((String) protocolVersionProperty).toLowerCase(); if (HttpConfigConstan...
java
private boolean convertBoolean(Object o) { if (o instanceof Boolean) return (Boolean) o; return "true".equalsIgnoreCase(o.toString().trim()); }
java
private int rangeLimit(int size, int min, int max) { if (size < min) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Config: " + size + " too small"); } return min; } else if (size > max) { if (TraceCompon...
java
private int minLimit(int input, int min) { if (input < min) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Config: " + input + " too small."); } return min; } return input; }
java
public boolean throwIOEForInboundConnections() { //If the httpOption throwIOEForInboundConnections is defined, return that value if (this.throwIOEForInboundConnections != null) return this.throwIOEForInboundConnections; //PI57542 //Otherwise, verify if a declarative service has been...
java
public void activate(ComponentContext cc) { executorServiceRef.activate(cc); contextServiceRef.activate(cc); ReactiveStreamsFactoryResolver.setInstance(new ReactiveStreamsFactoryImpl()); ReactiveStreamsEngineResolver.setInstance(this); singleton = this; }
java
public void deactivate(ComponentContext cc) { singleton = null; ReactiveStreamsEngineResolver.setInstance(null); ReactiveStreamsFactoryResolver.setInstance(null); executorServiceRef.deactivate(cc); contextServiceRef.deactivate(cc); }
java
public synchronized List getList() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getList"); // Remove a List from the pool List list = (List) listPool.remove(); // If the list is null then there was none available in the pool // So create a new one if (list ==...
java
public synchronized void returnList(List list) { if (tc.isEntryEnabled()) SibTr.entry(tc, "returnList"); list.clear(); listPool.add(list); if (tc.isEntryEnabled()) SibTr.exit(tc, "returnList"); }
java
void setParent(JMFMessageData parent) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.entry(this, tc, "setParent", new Object[] { parent }); synchronized (getMessageLockArtefact()) { // If the parent is a JSMessageData then this is straight forward ...
java