public class RestClientAppPresenter extends Object implements RestClientAppView.Listener
Modifier and Type | Field and Description |
---|---|
protected static String |
METHOD_ANNOTATIONS |
protected static String |
PARAMETERS |
protected static String |
REQUEST_BODY |
protected static String |
RESPONSE |
protected static String |
REST_CLIENT |
protected static String |
REST_SERVICE |
protected static String |
SERVICE_METHOD |
Constructor and Description |
---|
RestClientAppPresenter(RestClientAppView view,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
Modifier and Type | Method and Description |
---|---|
protected Object |
corvertValue(String input,
Class clazz) |
String |
onBodyFormat(Method methodValue,
String body) |
String[] |
onMethodChange(Method method) |
String |
onRequest(info.magnolia.resteasy.client.RestEasyClient client,
String serviceClass,
Method methodInstance,
String parameters,
String body,
String contextAttributes) |
List<Method> |
onRestClientChange(String className) |
protected String |
processOutput(Object output) |
RestClientAppView |
start() |
protected static final String RESPONSE
protected static final String PARAMETERS
protected static final String REQUEST_BODY
protected static final String REST_CLIENT
protected static final String REST_SERVICE
protected static final String SERVICE_METHOD
protected static final String METHOD_ANNOTATIONS
@Inject public RestClientAppPresenter(RestClientAppView view, info.magnolia.i18nsystem.SimpleTranslator i18n)
public RestClientAppView start()
public String onRequest(info.magnolia.resteasy.client.RestEasyClient client, String serviceClass, Method methodInstance, String parameters, String body, String contextAttributes) throws Throwable
onRequest
in interface RestClientAppView.Listener
Throwable
public String onBodyFormat(Method methodValue, String body) throws IOException
onBodyFormat
in interface RestClientAppView.Listener
IOException
public String[] onMethodChange(Method method)
onMethodChange
in interface RestClientAppView.Listener
public List<Method> onRestClientChange(String className) throws ClassNotFoundException
onRestClientChange
in interface RestClientAppView.Listener
ClassNotFoundException
protected Object corvertValue(String input, Class clazz) throws IOException
IOException
protected String processOutput(Object output) throws IOException
IOException
Copyright © 2015 Magnolia International Ltd.. All rights reserved.