public interface WsServiceLocal extends WsService
WsService
.Modifier and Type | Method and Description |
---|---|
RestRequestHandlingInfo |
selectRestRequestHandler(String path,
String method)
Selects a REST resource request handler for the request.
|
void |
sendRequest(long wsRequestHandlerId,
String request,
StringProperties requestHeaders)
Sends web service request.
|
void |
sendRestRequest(long requestHandlerId,
String content,
String responseContentType,
Map<String,String> requestHeaders,
Map<String,String> requestParams,
Map<String,String> pathParams)
Sends a REST web service request.
|
boolean |
waitingRestRequestHandlerExists(String path)
Tells whether or not a rest resource handler exists for the path regardless
of the HTTP method.
|
addWsRequestHandler, findWsRequestHandlers, getWsdl, getWsRequestHandler, getXsd, markTimedOut
void sendRequest(long wsRequestHandlerId, String request, StringProperties requestHeaders) throws WsRequestHandlerNotFoundException, ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
wsRequestHandlerId
- request
- request that should be set as field valuerequestHeaders
- headers sent with requestWsRequestHandlerNotFoundException
ModelInstanceNotFoundException
InvalidModelInstanceStateException
ErrorException
RestRequestHandlingInfo selectRestRequestHandler(String path, String method)
path
- the resource pathmethod
- the HTTP method usednull
.boolean waitingRestRequestHandlerExists(String path)
path
- the path to checktrue
if there is a resource handler for the path;
false
otherwise.void sendRestRequest(long requestHandlerId, String content, String responseContentType, Map<String,String> requestHeaders, Map<String,String> requestParams, Map<String,String> pathParams) throws RestRequestHandlerNotFoundException
requestHandlerId
- content
- responseContentType
- the content type of the responserequestHeaders
- requestParams
- pathParams
- RestRequestHandlerNotFoundException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.