public interface WsServiceLocal extends WsService
WsService
.Modifier and Type | Method and Description |
---|---|
RestRequestHandlingInfo |
selectRestRequestHandler(java.lang.String path,
java.lang.String method)
Selects a REST resource request handler for the request.
|
void |
sendRequest(long wsRequestHandlerId,
java.lang.String request,
StringProperties requestHeaders)
Sends web service request.
|
void |
sendRestRequest(long requestHandlerId,
java.lang.String content,
java.lang.String responseContentType,
java.util.Map<java.lang.String,java.lang.String> requestHeaders,
java.util.Map<java.lang.String,java.lang.String> requestParams,
java.util.Map<java.lang.String,java.lang.String> pathParams)
Sends a REST web service request.
|
boolean |
waitingRestRequestHandlerExists(java.lang.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, java.lang.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(java.lang.String path, java.lang.String method)
path
- the resource pathmethod
- the HTTP method usednull
.boolean waitingRestRequestHandlerExists(java.lang.String path)
path
- the path to checktrue
if there is a resource handler for the path;
false
otherwise.void sendRestRequest(long requestHandlerId, java.lang.String content, java.lang.String responseContentType, java.util.Map<java.lang.String,java.lang.String> requestHeaders, java.util.Map<java.lang.String,java.lang.String> requestParams, java.util.Map<java.lang.String,java.lang.String> pathParams) throws RestRequestHandlerNotFoundException
requestHandlerId
- content
- responseContentType
- the content type of the responserequestHeaders
- requestParams
- pathParams
- RestRequestHandlerNotFoundException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.