de.smartics.properties.admin.resources.controller
Class PropertyDescriptorResource

Package class diagram package PropertyDescriptorResource
java.lang.Object
  extended by de.smartics.properties.admin.resources.controller.PropertyDescriptorResource

@Path(value="")
@RolesAllowed(value="view")
public class PropertyDescriptorResource
     
     
extends Object

Provides access to properties used by the application.


Constructor Summary
PropertyDescriptorResource()
           
 
Method Summary
 javax.ws.rs.core.Response getAsDotXml(String propertyKey)
          Returns the property descriptor for a given property key.
 javax.ws.rs.core.Response getAsHtml(String propertyKey)
          Returns the property descriptor for a given property key as HTML.
 javax.ws.rs.core.Response getAsXml(String propertyKey)
          Returns the property descriptor for a given property key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyDescriptorResource

public PropertyDescriptorResource()
Method Detail

getAsDotXml

@GET
@Path(value="/descriptors/{key}.xml")
@Produces(value="*/*")
public javax.ws.rs.core.Response getAsDotXml(@PathParam(value="key")
                                                               String propertyKey)
                                      throws IOException
Returns the property descriptor for a given property key.

Parameters:
propertyKey - the key to the requested property descriptor.
Returns:
the string representation.
Throws:
IOException - on any problem generating the XML representation.

getAsXml

@GET
@Path(value="/descriptors/{key}")
@Produces(value={"application/xml","text/xml"})
public javax.ws.rs.core.Response getAsXml(@PathParam(value="key")
                                                            String propertyKey)
                                   throws IOException
Returns the property descriptor for a given property key.

Parameters:
propertyKey - the key to the requested property descriptor.
Returns:
the string representation.
Throws:
IOException - on any problem generating the XML representation.

getAsHtml

@GET
@Path(value="/descriptors/{key}")
@Produces(value="text/html")
public javax.ws.rs.core.Response getAsHtml(@PathParam(value="key")
                                                             String propertyKey)
                                    throws IOException
Returns the property descriptor for a given property key as HTML.

Parameters:
propertyKey - the key to the requested property descriptor.
Returns:
the string representation.
Throws:
IOException - on any problem generating the XML representation.


Copyright © 2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.