public class RemoteService extends Object implements Serializable
Constructor and Description |
---|
RemoteService() |
Modifier and Type | Method and Description |
---|---|
static RemoteServiceResponse |
delete(Launcher launcher,
int apiPort,
String postUrl) |
static RemoteServiceResponse |
get(Launcher launcher,
int apiPort,
String postUrl,
Class clazz) |
static RemoteServiceResponse |
getJSON(Launcher launcher,
int apiPort,
String postUrl,
Class clazz) |
static RemoteServiceResponse |
post(Launcher launcher,
int apiPort,
String postUrl,
Object postObject,
Class clazz) |
static RemoteServiceResponse |
put(Launcher launcher,
int apiPort,
String postUrl) |
@Nullable public static RemoteServiceResponse get(@Nonnull Launcher launcher, int apiPort, @Nonnull String postUrl, Class clazz) throws IOException, InterruptedException
launcher
- LauncherapiPort
- port of REST-APIpostUrl
- postfix for api urlclazz
- ClassIOException
- IOExceptionInterruptedException
- InterruptedException@Nullable public static RemoteServiceResponse delete(@Nonnull Launcher launcher, int apiPort, @Nonnull String postUrl) throws IOException, InterruptedException
launcher
- LauncherapiPort
- port of REST-APIpostUrl
- postfix for api urlIOException
- IOExceptionInterruptedException
- InterruptedException@Nullable public static RemoteServiceResponse put(@Nonnull Launcher launcher, int apiPort, @Nonnull String postUrl) throws IOException, InterruptedException
launcher
- LauncherapiPort
- port of REST-APIpostUrl
- postfix for api urlIOException
- IOExceptionInterruptedException
- InterruptedException@Nullable public static RemoteServiceResponse getJSON(@Nonnull Launcher launcher, int apiPort, @Nonnull String postUrl, Class clazz) throws IOException, InterruptedException
launcher
- LauncherapiPort
- port of REST-APIpostUrl
- postfix for api urlclazz
- ClassIOException
- IOExceptionInterruptedException
- InterruptedException@Nullable public static RemoteServiceResponse post(@Nonnull Launcher launcher, int apiPort, @Nonnull String postUrl, Object postObject, Class clazz) throws IOException, InterruptedException
launcher
- LauncherapiPort
- port of REST-APIpostUrl
- postfix for api urlclazz
- ClasspostObject
- object to postIOException
- IOExceptionInterruptedException
- InterruptedExceptionCopyright © 2016–2023 MicroNova AG. All rights reserved.