public class HttpsClient extends Object implements ITransportChannel
ITransportChannel.TransportChannelFeature| Modifier and Type | Field and Description |
|---|---|
static org.apache.http.conn.ssl.X509HostnameVerifier |
ALLOW_ALL_HOSTNAME_VERIFIER
Constant
ALLOW_ALL_HOSTNAME_VERIFIER |
| Constructor and Description |
|---|
HttpsClient(String protocol)
Constructor for HttpsClient.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close.
|
void |
dispose()
dispose.
|
EndpointConfiguration |
getEndpointConfiguration()
getEndpointConfiguration.
|
EndpointDescription |
getEndpointDescription()
getEndpointDescription.
|
EncoderContext |
getMessageContext()
getMessageContext.
|
int |
getOperationTimeout()
Get operation timeout
|
EnumSet<ITransportChannel.TransportChannelFeature> |
getSupportedFeatures()
Get a list of features supported by the channel.
|
void |
initialize(String connectUrl,
TransportChannelSettings tcs,
EncoderContext ctx)
Initialize a secure channel with endpoint identified by the URL.
|
<T extends ServiceResponse> |
serviceRequest(ServiceRequest<T> request)
Send a service request over the secure channel.
|
<T extends ServiceResponse> |
serviceRequest(ServiceRequest<T> request,
long operationTimeout)
Send a service request over the secure channel.
|
<T extends ServiceResponse> |
serviceRequestAsync(ServiceRequest<T> serviceRequest)
Asynchronous operation to send a request over the secure channel.
|
<T extends ServiceResponse> |
serviceRequestAsync(ServiceRequest<T> serviceRequest,
long operationTimeout)
Asynchronous operation to send a request over the secure channel.
|
<T extends ServiceResponse> |
serviceRequestAsync(ServiceRequest<T> serviceRequest,
long operationTimeout,
int secureChannelId)
serviceRequestAsync.
|
void |
setClientConnectionManager(org.apache.http.conn.ClientConnectionManager ccm)
Set client connection manager.
|
void |
setMaxConnections(int maxConnections)
Set the number of concurrent maximum connections.
|
void |
setOperationTimeout(int timeout)
Set operation timeout
|
public static final org.apache.http.conn.ssl.X509HostnameVerifier ALLOW_ALL_HOSTNAME_VERIFIER
ALLOW_ALL_HOSTNAME_VERIFIERpublic void close()
close.
public void dispose()
dispose.
dispose in interface ITransportChannelpublic EndpointConfiguration getEndpointConfiguration()
getEndpointConfiguration.
getEndpointConfiguration in interface ITransportChannelEndpointConfiguration object.public EndpointDescription getEndpointDescription()
getEndpointDescription.
getEndpointDescription in interface ITransportChannelEndpointDescription object.public EncoderContext getMessageContext()
getMessageContext.
getMessageContext in interface ITransportChannelEncoderContext object.public int getOperationTimeout()
getOperationTimeout in interface ITransportChannelpublic EnumSet<ITransportChannel.TransportChannelFeature> getSupportedFeatures()
getSupportedFeatures in interface ITransportChannelEnumSet object.public void initialize(String connectUrl, TransportChannelSettings tcs, EncoderContext ctx) throws ServiceResultException
ITransportChannelinitialize in interface ITransportChannelconnectUrl - a String object.tcs - a TransportChannelSettings object.ctx - a EncoderContext object.ServiceResultException - if any.public <T extends ServiceResponse> T serviceRequest(ServiceRequest<T> request) throws ServiceResultException
If the operation timeouts or the thread is interrupted a ServiceResultException is thrown with
StatusCodes.Bad_Timeout.
serviceRequest in interface ITransportChannelrequest - a ServiceRequest object.ServiceResponse object.ServiceResultException - if any.public <T extends ServiceResponse> T serviceRequest(ServiceRequest<T> request, long operationTimeout) throws ServiceResultException
If the operation timeouts or the operation is interrupted and a ServiceResultException is
thrown with StatusCodes.Bad_Timeout.
serviceRequest in interface ITransportChannelrequest - a ServiceRequest object.operationTimeout - timeout time in millisecondsServiceResponse object.ServiceResultException - if any.public <T extends ServiceResponse> AsyncResult<T> serviceRequestAsync(ServiceRequest<T> serviceRequest)
serviceRequestAsync in interface ITransportChannelserviceRequest - the requestpublic <T extends ServiceResponse> AsyncResult<T> serviceRequestAsync(ServiceRequest<T> serviceRequest, long operationTimeout)
serviceRequestAsync in interface ITransportChannelserviceRequest - the requestoperationTimeout - timeout timepublic <T extends ServiceResponse> AsyncResult<T> serviceRequestAsync(ServiceRequest<T> serviceRequest, long operationTimeout, int secureChannelId)
serviceRequestAsync.
serviceRequest - a ServiceRequest object.operationTimeout - a long.secureChannelId - a int.AsyncResult object.public void setClientConnectionManager(org.apache.http.conn.ClientConnectionManager ccm)
ccm - a ClientConnectionManager object.public void setMaxConnections(int maxConnections)
maxConnections - a int.public void setOperationTimeout(int timeout)
setOperationTimeout in interface ITransportChanneltimeout - in millisecondsCopyright © 2026. All rights reserved.