public class NuxeoServer extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AUTH_TYPE_BASIC |
static int |
AUTH_TYPE_NONE |
static int |
AUTH_TYPE_SECRET |
protected int |
authType |
protected String |
baseURL |
protected List<org.restlet.data.Cookie> |
cookies |
protected String |
davPrefix |
protected String |
password |
protected org.restlet.Client |
restClient |
protected String |
restPrefix |
protected String |
secretToken |
protected String |
userName |
Constructor and Description |
---|
NuxeoServer(String baseURL) |
NuxeoServer(String protocol,
String serverIP,
String serverPort) |
NuxeoServer(String protocol,
String serverIP,
String serverPort,
String servletPath) |
Modifier and Type | Method and Description |
---|---|
org.restlet.resource.Representation |
doRestletGetCall(List<String> pathParams,
Map<String,String> queryParams) |
org.restlet.resource.Representation |
doRestletGetCall(String subPath,
Map<String,String> queryParams) |
org.restlet.resource.Representation |
doRestletPostCall(List<String> pathParams,
Map<String,String> queryParams,
InputStream istream)
Deprecated.
Use
doRestletPostCall(List, Map, InputStream, Long) and provide a length. |
org.restlet.resource.Representation |
doRestletPostCall(List<String> pathParams,
Map<String,String> queryParams,
InputStream istream,
Long size) |
org.restlet.resource.Representation |
doRestletPostCall(String subPath,
Map<String,String> queryParams,
InputStream istream,
Long size) |
int |
getAuthType() |
String |
getDavPrefix() |
String |
getPassword() |
protected org.restlet.Client |
getRestClient() |
String |
getRestPrefix() |
String |
getSecretToken() |
String |
getUserName() |
void |
setAuthType(int authType) |
void |
setBasicAuthentication(String userName,
String password) |
void |
setCookies(List<org.restlet.data.Cookie> cookies) |
void |
setDavPrefix(String davPrefix) |
void |
setPassword(String password) |
void |
setRestPrefix(String restPrefix) |
void |
setSecretToken(String secretToken) |
void |
setSharedSecretAuthentication(String userName,
String secretToken) |
protected void |
setupAuth(org.restlet.data.Request request) |
protected void |
setupCookies(org.restlet.data.Request request) |
void |
setUserName(String userName) |
public static final int AUTH_TYPE_NONE
public static final int AUTH_TYPE_BASIC
public static final int AUTH_TYPE_SECRET
protected String restPrefix
protected int authType
protected String secretToken
protected org.restlet.Client restClient
public NuxeoServer(String baseURL)
public NuxeoServer(String protocol, String serverIP, String serverPort)
public NuxeoServer(String protocol, String serverIP, String serverPort, String servletPath)
public void setBasicAuthentication(String userName, String password)
public void setSharedSecretAuthentication(String userName, String secretToken)
public void setCookies(List<org.restlet.data.Cookie> cookies)
public org.restlet.resource.Representation doRestletPostCall(List<String> pathParams, Map<String,String> queryParams, InputStream istream)
doRestletPostCall(List, Map, InputStream, Long)
and provide a length.pathParams
- queryParams
- istream
- public org.restlet.resource.Representation doRestletPostCall(List<String> pathParams, Map<String,String> queryParams, InputStream istream, Long size)
public org.restlet.resource.Representation doRestletPostCall(String subPath, Map<String,String> queryParams, InputStream istream, Long size)
public org.restlet.resource.Representation doRestletGetCall(List<String> pathParams, Map<String,String> queryParams)
public org.restlet.resource.Representation doRestletGetCall(String subPath, Map<String,String> queryParams)
protected void setupAuth(org.restlet.data.Request request)
protected void setupCookies(org.restlet.data.Request request)
protected org.restlet.Client getRestClient()
public int getAuthType()
public void setAuthType(int authType)
public String getDavPrefix()
public void setDavPrefix(String davPrefix)
public String getPassword()
public void setPassword(String password)
public String getRestPrefix()
public void setRestPrefix(String restPrefix)
public String getSecretToken()
public void setSecretToken(String secretToken)
public String getUserName()
public void setUserName(String userName)
Copyright © 2016 Nuxeo SA. All rights reserved.