public abstract class EndpointServiceRequest<Request extends ServiceRequest<Response>,Response extends ServiceResponse> extends Object
To send service error use sendResponse(new ServiceFault());
| Modifier and Type | Field and Description |
|---|---|
protected Endpoint |
endpoint |
protected DateTime |
receiveTimestamp |
protected Request |
request |
static boolean |
sendServiceFaultsForBadServiceLevelOpcHttpsResponses
Toggles is a
ServiceFault sent in opc.https instead of a full response if the service
level status is bad. |
static boolean |
sendServiceFaultsForBadServiceLevelResponses
Toggles is a
ServiceFault sent in opc.tcp instead of a full response if the service
level status is bad. |
protected Server |
server |
| Constructor and Description |
|---|
EndpointServiceRequest(Request request,
Server server,
Endpoint endpoint)
Constructor for EndpointServiceRequest.
|
| Modifier and Type | Method and Description |
|---|---|
abstract ServerSecureChannel |
getChannel()
getChannel.
|
Endpoint |
getEndpoint()
Get endpoint
|
DateTime |
getReceiveTimestamp()
Server-side timestamp when the
getRequest() was obtained. |
Request |
getRequest()
Get Request.
|
abstract SecurityMode |
getSecurityMode()
A SecurityMode.
|
Server |
getServer()
Get server
|
void |
sendException(Throwable e)
Convert Throwable into an Service fault and send that to the client.
|
AsyncWrite |
sendFault(ServiceFault fault)
Send a service fault
|
abstract void |
sendResponse(AsyncWrite response)
Send response.
|
abstract AsyncWrite |
sendResponse(Response response,
List<Locale> locales)
Send a response.
|
public static boolean sendServiceFaultsForBadServiceLevelResponses
ServiceFault sent in opc.tcp instead of a full response if the service
level status is bad. By default true, some future SDK version will remove this flag.public static boolean sendServiceFaultsForBadServiceLevelOpcHttpsResponses
ServiceFault sent in opc.https instead of a full response if the service
level status is bad. By default false, some future SDK version will remove this flag.protected Server server
protected Endpoint endpoint
protected Request extends ServiceRequest<Response> request
protected DateTime receiveTimestamp
public abstract ServerSecureChannel getChannel()
getChannel.
ServerSecureChannel object.public Endpoint getEndpoint()
public DateTime getReceiveTimestamp()
getRequest() was obtained.public Request getRequest()
public abstract SecurityMode getSecurityMode()
public Server getServer()
public void sendException(Throwable e)
e - ServiceResultException or otherpublic AsyncWrite sendFault(ServiceFault fault)
fault - errorpublic abstract void sendResponse(AsyncWrite response)
response - async write wrapping response or ServiceFaultpublic abstract AsyncWrite sendResponse(Response response, List<Locale> locales)
response - to send, either ServiceFault or ServiceResultlocales - a list of locale preferences (or null if none)Copyright © 2026. All rights reserved.