public class Ping extends JsonRestService
HTTP_200_OK, HTTP_201_CREATED, HTTP_202_ACCEPTED, HTTP_400_BAD_REQUEST, HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN, HTTP_404_NOT_FOUND, HTTP_405_METHOD_NOT_ALLOWED, HTTP_409_CONFLICT, HTTP_500_INTERNAL_ERROR, HTTP_501_NOT_IMPLEMENTED
Constructor and Description |
---|
Ping() |
Modifier and Type | Method and Description |
---|---|
protected UserAction.Action |
getAction(java.lang.String path,
java.lang.Object content,
java.util.Map<java.lang.String,java.lang.String> headers) |
protected UserAction.Entity |
getEntity(java.lang.String path,
java.lang.Object content,
java.util.Map<java.lang.String,java.lang.String> headers)
Should be overridden.
|
java.util.List<java.lang.String> |
getRoles(java.lang.String path)
A user who belongs to any role in the returned list is allowed
to perform this action/method.
|
org.json.JSONObject |
post(java.lang.String path,
org.json.JSONObject content,
java.util.Map<java.lang.String,java.lang.String> headers)
Create a new entity or relationship.
|
delete, export, get, getDefaultResponse, getExporter, getJson, getText, invokeServiceProcess, isApi, launchProcess, notifyProcess, notifyProcess, patch, put, service, validateResponse
auditLog, authorize, authorizeExport, generateRequestId, getAuthUser, getEntityDescription, getEntityId, getParameters, getQuery, getRequestUrl, getRequiredProperty, getRoles, getSegment, getSegments, getSource, getSub, getUserAction, logtag, masterRequestId
public java.util.List<java.lang.String> getRoles(java.lang.String path)
RestService
getRoles
in class RestService
protected UserAction.Entity getEntity(java.lang.String path, java.lang.Object content, java.util.Map<java.lang.String,java.lang.String> headers)
RestService
getEntity
in class RestService
protected UserAction.Action getAction(java.lang.String path, java.lang.Object content, java.util.Map<java.lang.String,java.lang.String> headers)
getAction
in class RestService
public org.json.JSONObject post(java.lang.String path, org.json.JSONObject content, java.util.Map<java.lang.String,java.lang.String> headers) throws ServiceException, org.json.JSONException
JsonRestService
post
in class JsonRestService
ServiceException
org.json.JSONException
Copyright © 2019 CenturyLink, Inc.