|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.transport.https.HttpsClient
public class HttpsClient
Https Opc-Ua Client connection to an endpoint.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.opcfoundation.ua.transport.tcp.io.ITransportChannel |
|---|
ITransportChannel.TransportChannelFeature |
| Field Summary | |
|---|---|
static org.apache.http.conn.ssl.X509HostnameVerifier |
ALLOW_ALL_HOSTNAME_VERIFIER
Constant ALLOW_ALL_HOSTNAME_VERIFIER |
| Constructor Summary | |
|---|---|
HttpsClient(String protocol)
Constructor for HttpsClient. |
|
| Method Summary | |
|---|---|
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. |
ServiceResponse |
serviceRequest(ServiceRequest request)
Send a service request over the secure channel. |
ServiceResponse |
serviceRequest(ServiceRequest request,
long operationTimeout)
Send a service request over the secure channel. |
AsyncResult<ServiceResponse> |
serviceRequestAsync(ServiceRequest serviceRequest)
Asynchronous operation to send a request over the secure channel. |
AsyncResult<ServiceResponse> |
serviceRequestAsync(ServiceRequest serviceRequest,
long operationTimeout)
Asynchronous operation to send a request over the secure channel. |
AsyncResult<ServiceResponse> |
serviceRequestAsync(ServiceRequest 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.http.conn.ssl.X509HostnameVerifier ALLOW_ALL_HOSTNAME_VERIFIER
ALLOW_ALL_HOSTNAME_VERIFIER
| Constructor Detail |
|---|
public HttpsClient(String protocol)
Constructor for HttpsClient.
protocol - a String object.| Method Detail |
|---|
public void setClientConnectionManager(org.apache.http.conn.ClientConnectionManager ccm)
ccm - a ClientConnectionManager object.public void setMaxConnections(int maxConnections)
maxConnections - a int.
public void initialize(String connectUrl,
TransportChannelSettings tcs,
EncoderContext ctx)
throws ServiceResultException
initialize in interface ITransportChannelconnectUrl - a String object.tcs - a TransportChannelSettings object.ctx - a EncoderContext object.
ServiceResultException - if any.
public ServiceResponse serviceRequest(ServiceRequest 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 ServiceResponse serviceRequest(ServiceRequest 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 milliseconds
ServiceResponse object.
ServiceResultException - if any.public AsyncResult<ServiceResponse> serviceRequestAsync(ServiceRequest serviceRequest)
serviceRequestAsync in interface ITransportChannelserviceRequest - the request
public AsyncResult<ServiceResponse> serviceRequestAsync(ServiceRequest serviceRequest,
long operationTimeout)
serviceRequestAsync in interface ITransportChannelserviceRequest - the requestoperationTimeout - timeout time
public AsyncResult<ServiceResponse> serviceRequestAsync(ServiceRequest serviceRequest,
long operationTimeout,
int secureChannelId)
serviceRequestAsync.
serviceRequest - a ServiceRequest object.operationTimeout - a long.secureChannelId - a int.
AsyncResult object.public void close()
close.
public void dispose()
dispose.
dispose in interface ITransportChannelpublic EnumSet<ITransportChannel.TransportChannelFeature> getSupportedFeatures()
getSupportedFeatures in interface ITransportChannelEnumSet object.public EndpointDescription getEndpointDescription()
getEndpointDescription.
getEndpointDescription in interface ITransportChannelEndpointDescription object.public EndpointConfiguration getEndpointConfiguration()
getEndpointConfiguration.
getEndpointConfiguration in interface ITransportChannelEndpointConfiguration object.public EncoderContext getMessageContext()
getMessageContext.
getMessageContext in interface ITransportChannelEncoderContext object.public void setOperationTimeout(int timeout)
setOperationTimeout in interface ITransportChanneltimeout - in millisecondspublic int getOperationTimeout()
getOperationTimeout in interface ITransportChannel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||