|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fusesource.fmc.restjmx.resources.AttributeResource
public class AttributeResource
The resource for a MBean
| Constructor Summary | |
|---|---|
AttributeResource(java.lang.String uriPath,
java.lang.String namespace,
javax.management.ObjectName objectName,
javax.management.MBeanAttributeInfo attributeInfo,
java.lang.Object value)
|
|
| Method Summary | |
|---|---|
Attribute |
getAttribute()
Returns this MBean |
java.lang.String |
getDescription()
|
boolean |
getIsWritable()
|
java.lang.String |
getName()
|
java.lang.String |
getNamespace()
|
java.lang.String |
getObjectName()
|
java.lang.String |
getType()
|
java.lang.String |
getUriPath()
|
java.lang.String |
getValue()
|
javax.ws.rs.core.Response |
postMessage(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.HttpHeaders headers,
java.lang.String val)
Posts an update to the attribute value with the payload being text, XML or JSON |
javax.ws.rs.core.Response |
postMessageForm(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.HttpHeaders headers,
com.sun.jersey.api.representation.Form formData)
Posts an update to the attribute value taking the form data and extracting the body
field as the new value. |
protected javax.ws.rs.core.Response |
setAttributeAndRedirect(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.HttpHeaders headers,
java.lang.String val)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeResource(java.lang.String uriPath,
java.lang.String namespace,
javax.management.ObjectName objectName,
javax.management.MBeanAttributeInfo attributeInfo,
java.lang.Object value)
| Method Detail |
|---|
public Attribute getAttribute()
throws java.lang.Exception
java.lang.Exception
public javax.ws.rs.core.Response postMessage(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.ws.rs.core.HttpHeaders headers,
java.lang.String val)
throws java.lang.Exception
java.lang.Exception
public javax.ws.rs.core.Response postMessageForm(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.ws.rs.core.HttpHeaders headers,
com.sun.jersey.api.representation.Form formData)
throws java.lang.Exception
body
field as the new value.
java.lang.Exception
protected javax.ws.rs.core.Response setAttributeAndRedirect(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.HttpHeaders headers,
java.lang.String val)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getUriPath()
public java.lang.String getNamespace()
public java.lang.String getObjectName()
public java.lang.String getName()
public java.lang.String getType()
public java.lang.String getDescription()
public boolean getIsWritable()
public java.lang.String getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||