public class ServiceProxyWebJson extends ServiceProxyWeb
ServiceProxyWeb
which is uses json to serialize/deserialize requests and responses.DispatchJsonServlet
,
ServiceRequest
,
ServiceResponse
Constructor and Description |
---|
ServiceProxyWebJson() |
Modifier and Type | Method and Description |
---|---|
org.apache.http.entity.ContentProducer |
getContentProducer(ServiceRequest request)
Gets the content producer.
|
Object |
getResponse(InputStream is)
Gets the response from the input stream.
|
getUrl, invoke
getServiceClass, setServiceClass, toService
public org.apache.http.entity.ContentProducer getContentProducer(ServiceRequest request)
ServiceProxyWeb
getContentProducer
in class ServiceProxyWeb
request
- the requestpublic Object getResponse(InputStream is) throws Throwable
ServiceProxyWeb
getResponse
in class ServiceProxyWeb
is
- the InputStreamThrowable
- in case of any errorCopyright © 2010-2020 Toolsverse. All Rights Reserved.