|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.transport.endpoint.EndpointServiceRequest<Request,Response>
public abstract class EndpointServiceRequest<Request extends ServiceRequest,Response extends ServiceResponse>
Asynchronous message exchange. A service request to be processed by a server (as opposed to service request queried by a client).
To send service error use sendResponse(new ServiceFault());
| Field Summary | |
|---|---|
protected Endpoint |
endpoint
|
protected Request |
request
|
protected Server |
server
|
| Constructor Summary | |
|---|---|
EndpointServiceRequest(Request request,
Server server,
Endpoint endpoint)
Constructor for EndpointServiceRequest. |
|
| Method Summary | |
|---|---|
abstract ServerSecureChannel |
getChannel()
getChannel. |
Endpoint |
getEndpoint()
Get endpoint |
Request |
getRequest()
Get Request. |
Server |
getServer()
Get server |
void |
sendException(Throwable e)
Convert Throwable into an Service fault and send that to the client. |
void |
sendFault(ServiceFault fault)
Send a service fault |
abstract void |
sendResponse(AsyncWrite response)
Send response. |
abstract AsyncWrite |
sendResponse(Response response)
Send a response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Server server
protected Endpoint endpoint
protected Request extends ServiceRequest request
| Constructor Detail |
|---|
public EndpointServiceRequest(Request request,
Server server,
Endpoint endpoint)
Constructor for EndpointServiceRequest.
request - a Request object.server - a Server object.endpoint - a Endpoint object.| Method Detail |
|---|
public Request getRequest()
public Server getServer()
public Endpoint getEndpoint()
public abstract void sendResponse(AsyncWrite response)
response - async write wrapping response or ServiceFaultpublic abstract AsyncWrite sendResponse(Response response)
response - to send, either ServiceFault or ServiceResult
public void sendFault(ServiceFault fault)
fault - errorpublic void sendException(Throwable e)
e - ServiceResultException or otherpublic abstract ServerSecureChannel getChannel()
getChannel.
ServerSecureChannel object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||