public abstract class ServiceManagerHelper extends Object
Constructor and Description |
---|
ServiceManagerHelper() |
ServiceManagerHelper(String envFileName) |
Modifier and Type | Method and Description |
---|---|
void |
closeSession() |
<T> javax.ws.rs.core.Response |
exec(String functionName,
String path,
javax.ws.rs.client.WebTarget service,
org.glassfish.jersey.media.multipart.FormDataMultiPart headers,
MapBuilder queryParams) |
<T> javax.ws.rs.core.Response |
exec(String functionName,
String path,
javax.ws.rs.client.WebTarget service,
org.glassfish.jersey.media.multipart.FormDataMultiPart headers,
MapBuilder queryParams,
javax.ws.rs.core.MediaType inputMediaType) |
<T> javax.ws.rs.core.Response |
exec(String functionName,
String path,
javax.ws.rs.client.WebTarget service,
org.glassfish.jersey.media.multipart.FormDataMultiPart headers,
MapBuilder queryParams,
javax.ws.rs.core.MediaType inputMediaType,
String outputMediaType) |
<T> Object |
exec(String functionName,
String path,
javax.ws.rs.client.WebTarget service,
org.glassfish.jersey.media.multipart.FormDataMultiPart headers,
MapBuilder queryParams,
javax.ws.rs.core.MediaType inputMediaType,
String outputMediaType,
Class responseClass,
T inputObject) |
<T> javax.ws.rs.core.Response |
exec(String functionName,
String path,
javax.ws.rs.client.WebTarget service,
org.glassfish.jersey.media.multipart.FormDataMultiPart headers,
MapBuilder queryParams,
javax.ws.rs.core.MediaType inputMediaType,
String outputMediaType,
T inputObject) |
<T> Object |
execDELETE(javax.ws.rs.client.Invocation.Builder builder,
javax.ws.rs.core.MediaType inputMediaType,
Class<?> responseClass,
T inputObject) |
<T> Object |
execGET(javax.ws.rs.client.Invocation.Builder builder,
javax.ws.rs.core.MediaType inputMediaType,
Class<?> responseClass,
T inputObject) |
<T> Object |
execPOST(javax.ws.rs.client.Invocation.Builder builder,
javax.ws.rs.core.MediaType inputMediaType,
Class<?> responseClass,
T inputObject) |
<T> Object |
execPUT(javax.ws.rs.client.Invocation.Builder builder,
javax.ws.rs.core.MediaType inputMediaType,
Class<?> responseClass,
T inputObject) |
String |
getAdminUrl() |
String |
getBaseUrl() |
String |
getClientDir() |
String |
getCurrentDB() |
String |
getPassword() |
String |
getServerDir() |
String |
getServerHdfsUrl() |
static javax.ws.rs.client.WebTarget |
getServerLens() |
static URI |
getServiceURI(String baseUri) |
static String |
getSessionHandle() |
String |
getSessionHandleString() |
String |
getUserName() |
static javax.ws.rs.client.WebTarget |
init() |
String |
openSession() |
String |
openSession(String database) |
javax.ws.rs.core.Response |
sendForm(String methodName,
String url,
FormBuilder formData) |
javax.ws.rs.core.Response |
sendQuery(String methodName,
String url,
MapBuilder query) |
public ServiceManagerHelper(String envFileName)
public ServiceManagerHelper()
public static javax.ws.rs.client.WebTarget init()
public static javax.ws.rs.client.WebTarget getServerLens()
public static String getSessionHandle()
public String getBaseUrl()
public String getAdminUrl()
public String getUserName()
public String getPassword()
public String getServerDir()
public String getClientDir()
public String getServerHdfsUrl()
public String getSessionHandleString()
public String getCurrentDB()
public String openSession(String database) throws JAXBException, LensException
JAXBException
LensException
public String openSession() throws JAXBException, LensException
JAXBException
LensException
public void closeSession() throws JAXBException, LensException
JAXBException
LensException
public <T> javax.ws.rs.core.Response exec(String functionName, String path, javax.ws.rs.client.WebTarget service, org.glassfish.jersey.media.multipart.FormDataMultiPart headers, MapBuilder queryParams, javax.ws.rs.core.MediaType inputMediaType, String outputMediaType)
public <T> javax.ws.rs.core.Response exec(String functionName, String path, javax.ws.rs.client.WebTarget service, org.glassfish.jersey.media.multipart.FormDataMultiPart headers, MapBuilder queryParams, javax.ws.rs.core.MediaType inputMediaType)
public <T> javax.ws.rs.core.Response exec(String functionName, String path, javax.ws.rs.client.WebTarget service, org.glassfish.jersey.media.multipart.FormDataMultiPart headers, MapBuilder queryParams)
public <T> Object exec(String functionName, String path, javax.ws.rs.client.WebTarget service, org.glassfish.jersey.media.multipart.FormDataMultiPart headers, MapBuilder queryParams, javax.ws.rs.core.MediaType inputMediaType, String outputMediaType, Class responseClass, T inputObject)
public <T> javax.ws.rs.core.Response exec(String functionName, String path, javax.ws.rs.client.WebTarget service, org.glassfish.jersey.media.multipart.FormDataMultiPart headers, MapBuilder queryParams, javax.ws.rs.core.MediaType inputMediaType, String outputMediaType, T inputObject)
public <T> Object execPUT(javax.ws.rs.client.Invocation.Builder builder, javax.ws.rs.core.MediaType inputMediaType, Class<?> responseClass, T inputObject)
public <T> Object execGET(javax.ws.rs.client.Invocation.Builder builder, javax.ws.rs.core.MediaType inputMediaType, Class<?> responseClass, T inputObject)
public <T> Object execPOST(javax.ws.rs.client.Invocation.Builder builder, javax.ws.rs.core.MediaType inputMediaType, Class<?> responseClass, T inputObject)
public <T> Object execDELETE(javax.ws.rs.client.Invocation.Builder builder, javax.ws.rs.core.MediaType inputMediaType, Class<?> responseClass, T inputObject)
public javax.ws.rs.core.Response sendForm(String methodName, String url, FormBuilder formData)
public javax.ws.rs.core.Response sendQuery(String methodName, String url, MapBuilder query)
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.