public class ServiceProxyWeb extends ServiceProxy
DispatchServlet
,
ServiceProxyLocal
,
ServiceRequest
,
ServiceResponse
Constructor and Description |
---|
ServiceProxyWeb() |
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.
|
String |
getUrl()
Gets the server url.
|
Object |
invoke(Object proxy,
Method m,
Object[] args) |
getServiceClass, setServiceClass, toService
public org.apache.http.entity.ContentProducer getContentProducer(ServiceRequest request)
request
- the requestpublic Object getResponse(InputStream is) throws Throwable
is
- the InputStreamThrowable
- in case of any errorpublic String getUrl() throws Exception
Exception
- the exception if server url is not configured.public Object invoke(Object proxy, Method m, Object[] args) throws Throwable
invoke
in interface InvocationHandler
invoke
in class ServiceProxy
Throwable
Copyright © 2010-2020 Toolsverse. All Rights Reserved.