public class MonitoredAttributeBagResource extends AbstractResource
| Modifier and Type | Field and Description |
|---|---|
protected List<org.jvnet.hk2.config.Dom> |
entity
A list of the monitored attributes in the service.
|
static LocalStringManagerImpl |
LOCAL_STRINGS |
protected org.jvnet.hk2.config.Dom |
parent
The service containing the monitored attributes.
|
protected String |
tagName
The name of the element the monitored attributes are stored under.
|
locatorBridge, logger, requestHeaders, securityContext, serviceLocator, subjectRef, uriInfo| Constructor and Description |
|---|
MonitoredAttributeBagResource() |
| Modifier and Type | Method and Description |
|---|---|
ActionReportResult |
delete()
Deletes all monitored-attributes.
|
ActionReportResult |
get()
Gets the monitored-attributes.
|
List<Map<String,String>> |
getMonitoredAttributes()
Gets all of the monitored attributes in the entity.
|
ActionReportResult |
post(List<Map<String,String>> attributes)
Creates new monitored-attributes.
|
ActionReportResult |
put(List<Map<String,String>> attributes)
Creates new monitored-attributes.
|
void |
setMonitoredAttributes(List<Map<String,String>> attributes)
Sets the monitored attribute list to the specified list.
|
void |
setParentAndTagName(org.jvnet.hk2.config.Dom parent,
String tagName)
Sets the parent and the tag name of the resource.
|
getAuthenticatedUser, getSubjectpublic static final LocalStringManagerImpl LOCAL_STRINGS
protected List<org.jvnet.hk2.config.Dom> entity
protected org.jvnet.hk2.config.Dom parent
protected String tagName
@GET
@Produces(value={"text/html","application/json","application/xml"})
public ActionReportResult get()
@PUT
@Consumes(value={"application/json","application/xml","application/x-www-form-urlencoded"})
@Produces(value={"text/html","application/json","application/xml"})
public ActionReportResult put(List<Map<String,String>> attributes)
attributes - the list of monitored-attributes to be created.@POST
@Consumes(value={"application/json","application/xml","application/x-www-form-urlencoded"})
@Produces(value={"text/html","application/json","application/xml"})
public ActionReportResult post(List<Map<String,String>> attributes)
attributes - the list of monitored-attributes to be created.@DELETE
@Produces(value={"text/html","application/json","application/xml"})
public ActionReportResult delete()
public List<Map<String,String>> getMonitoredAttributes()
public void setMonitoredAttributes(List<Map<String,String>> attributes) throws org.jvnet.hk2.config.TransactionFailure
attributes - the intended list of attributes.org.jvnet.hk2.config.TransactionFailure - if an error occurs in removing or adding
attributes.public void setParentAndTagName(org.jvnet.hk2.config.Dom parent,
String tagName)
parent - tagName - Copyright © 2018. All rights reserved.