public class StatusServletClient extends Object
StatusServlet
Modifier and Type | Field and Description |
---|---|
protected static String |
POST_PARAM |
protected static String |
POST_PARAM_STARTED |
protected static String |
POST_PARAM_SUMMARY |
protected static String |
URL_PATTERN |
Constructor and Description |
---|
StatusServletClient(ConfigurationGenerator configurationGenerator) |
Modifier and Type | Method and Description |
---|---|
protected void |
connect(String method) |
protected void |
disconnect() |
protected boolean |
getResponse(StringBuilder response) |
String |
getStartupSummary() |
boolean |
init() |
boolean |
isStarted() |
boolean |
isStartupFine()
Return detected status of Nuxeo server by last call to
getStartupSummary() |
protected boolean |
post(String param,
String value,
StringBuilder response) |
void |
setKey(String key)
Set secure key used for connection
|
protected static final String URL_PATTERN
protected static final String POST_PARAM
protected static final String POST_PARAM_STARTED
protected static final String POST_PARAM_SUMMARY
public StatusServletClient(ConfigurationGenerator configurationGenerator)
configurationGenerator
- public void setKey(String key)
key
- any String
public boolean isStarted() throws SocketTimeoutException
SocketTimeoutException
public boolean init() throws SocketTimeoutException
SocketTimeoutException
protected void disconnect()
protected void connect(String method) throws IOException
IOException
public String getStartupSummary() throws SocketTimeoutException
SocketTimeoutException
protected boolean post(String param, String value, StringBuilder response) throws SocketTimeoutException
SocketTimeoutException
protected boolean getResponse(StringBuilder response) throws IOException
IOException
public boolean isStartupFine()
getStartupSummary()
Copyright © 2015 Nuxeo SA. All rights reserved.