public class PropertiesResource extends Object
| Constructor and Description | 
|---|
PropertiesResource()
Creates a new instance of PropertiesResource 
 | 
| Modifier and Type | Method and Description | 
|---|---|
javax.ws.rs.core.Response | 
addAttribute(javax.servlet.http.HttpServletRequest req,
            javax.ws.rs.core.HttpHeaders headers,
            String property,
            Long logId,
            XmlProperty data)
PUT method for adding a new properties attribute to a log entry. 
 | 
javax.ws.rs.core.Response | 
addProperty(String newProperty,
           XmlProperty data)
PUT method for adding a new property. 
 | 
javax.ws.rs.core.Response | 
appendProperty(String newProperty,
              XmlProperty data)
POST method for adding a new property. 
 | 
javax.ws.rs.core.Response | 
listAttributes(String property)
GET method for retrieving the list of attributes for a given property. 
 | 
javax.ws.rs.core.Response | 
listProperties()
GET method for retrieving the list of properties in the database. 
 | 
javax.ws.rs.core.Response | 
removeAttribute(javax.servlet.http.HttpServletRequest req,
               javax.ws.rs.core.HttpHeaders headers,
               String property,
               Long logId,
               XmlProperty data)
DELETE method for removing a properties attribute from a log entry. 
 | 
javax.ws.rs.core.Response | 
removeProperty(String property,
              XmlProperty data)
DELETE method for removing a property. 
 | 
public PropertiesResource()
public javax.ws.rs.core.Response listProperties()
public javax.ws.rs.core.Response addProperty(String newProperty, XmlProperty data)
newProperty - the property being addeddata - the XML payload containing attributes to be added to the propertypublic javax.ws.rs.core.Response listAttributes(String property)
public javax.ws.rs.core.Response appendProperty(String newProperty, XmlProperty data)
newProperty - the property being addeddata - the XML payload containing attributes to be added to the propertypublic javax.ws.rs.core.Response removeProperty(String property, XmlProperty data)
String - property property to be removed or that will contain attributes to be removedProperty - data payload containing attributes to be removedpublic javax.ws.rs.core.Response addAttribute(@Context
                                     javax.servlet.http.HttpServletRequest req,
                                     @Context
                                     javax.ws.rs.core.HttpHeaders headers,
                                     String property,
                                     Long logId,
                                     XmlProperty data)
                                       throws UnsupportedEncodingException,
                                              NoSuchAlgorithmException
String - newProperty the property being addedLong - logId the id of the log entry that the property is being added todata - the XML payload containing attributes and their values to be added to be associated with the log entryUnsupportedEncodingExceptionNoSuchAlgorithmExceptionpublic javax.ws.rs.core.Response removeAttribute(@Context
                                        javax.servlet.http.HttpServletRequest req,
                                        @Context
                                        javax.ws.rs.core.HttpHeaders headers,
                                        String property,
                                        Long logId,
                                        XmlProperty data)
                                          throws UnsupportedEncodingException,
                                                 NoSuchAlgorithmException
String - newProperty the property being addedLong - logId the id of the log entry that the property is being added todata - the XML payload containing attributes and their values to be removed from the log entryUnsupportedEncodingExceptionNoSuchAlgorithmExceptionCopyright © 2010-2014 Michigan State University. All Rights Reserved.