org.ow2.jasmine.probe.rest.impl
Class JTargets

java.lang.Object
  extended by org.ow2.jasmine.probe.rest.impl.JTargets
All Implemented Interfaces:
Targets

public class JTargets
extends Object
implements Targets


Field Summary
 
Fields inherited from interface org.ow2.jasmine.probe.rest.Targets
RESOURCE_NAME
 
Constructor Summary
JTargets(org.ow2.jasmine.probe.JasmineProbeManager jpManager)
           
 
Method Summary
 javax.ws.rs.core.Response createTarget(org.ow2.jasmine.probe.api.generated.TargetBaseType targetDef)
          Process HTTP POST requests having /target URI and new target definition in its body.
 javax.ws.rs.core.Response deleteTarget(String name)
          Process HTTP DELETE requests having /target/{name} URI Corresponds to target-remove name
 javax.ws.rs.core.Response getTarget(String name, javax.ws.rs.core.UriInfo ui)
          Process HTTP GET requests having /target/{name} URI Correspond to target-list -n name
 javax.ws.rs.core.Response getTargets(boolean verbose, javax.ws.rs.core.UriInfo ui)
          Process HTTP GET requests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTargets

public JTargets(org.ow2.jasmine.probe.JasmineProbeManager jpManager)
Method Detail

getTarget

public javax.ws.rs.core.Response getTarget(String name,
                                           javax.ws.rs.core.UriInfo ui)
Description copied from interface: Targets
Process HTTP GET requests having /target/{name} URI Correspond to target-list -n name

Specified by:
getTarget in interface Targets
Parameters:
name - target name
Returns:
response

getTargets

public javax.ws.rs.core.Response getTargets(boolean verbose,
                                            javax.ws.rs.core.UriInfo ui)
Description copied from interface: Targets
Process HTTP GET requests. Possible URIs are: /target that corresponds to 'target-list' command or /target?verbose="true" that corresponds to 'target-list -v' command

Specified by:
getTargets in interface Targets
Returns:
response containing the existent targets

deleteTarget

public javax.ws.rs.core.Response deleteTarget(String name)
Description copied from interface: Targets
Process HTTP DELETE requests having /target/{name} URI Corresponds to target-remove name

Specified by:
deleteTarget in interface Targets
Parameters:
name - the name of the target to remove

createTarget

public javax.ws.rs.core.Response createTarget(org.ow2.jasmine.probe.api.generated.TargetBaseType targetDef)
Description copied from interface: Targets
Process HTTP POST requests having /target URI and new target definition in its body. Corresponds to target-create command

Specified by:
createTarget in interface Targets
Parameters:
targetDef - new target definition
Returns:


Copyright © 2013 OW2 Consortium. All Rights Reserved.