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

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

public class JOutputs
extends Object
implements Outputs


Field Summary
 
Fields inherited from interface org.ow2.jasmine.probe.rest.Outputs
RESOURCE_NAME
 
Constructor Summary
JOutputs(org.ow2.jasmine.probe.JasmineProbeManager jpManager)
           
 
Method Summary
 javax.ws.rs.core.Response changeOutput(org.ow2.jasmine.probe.api.generated.OutputBaseType outputDef, String name)
          Process HTTP PUT requests having /output/{name} URI and updated output definition in its body.
 javax.ws.rs.core.Response createOutput(org.ow2.jasmine.probe.api.generated.OutputBaseType outputDef)
          Process HTTP POST requests having /output URI and new output definition in its body.
 javax.ws.rs.core.Response deleteOutput(String name)
          Process HTTP DELETE requests having /output/{name} URI Corresponds to output-remove name
 javax.ws.rs.core.Response getOutput(String name, javax.ws.rs.core.UriInfo ui)
          Process HTTP GET requests having /output/{name} URI Correspond to output-list -n name
 javax.ws.rs.core.Response getOutputs(String type, 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

JOutputs

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

getOutput

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

Specified by:
getOutput in interface Outputs
Parameters:
name - output name
Returns:
response

getOutputs

public javax.ws.rs.core.Response getOutputs(String type,
                                            boolean verbose,
                                            javax.ws.rs.core.UriInfo ui)
Description copied from interface: Outputs
Process HTTP GET requests. Possible URIs are: /output that corresponds to 'output-list' command or /output?type={typeName} that corresponds to 'output-list -t typeName' command or /output?verbose="true" that corresponds to 'output-list -v' command

Specified by:
getOutputs in interface Outputs
Returns:
response containing the existent outputs

createOutput

public javax.ws.rs.core.Response createOutput(org.ow2.jasmine.probe.api.generated.OutputBaseType outputDef)
Description copied from interface: Outputs
Process HTTP POST requests having /output URI and new output definition in its body. Corresponds to output-create command

Specified by:
createOutput in interface Outputs
Parameters:
outputDef - new output's definition
Returns:
response with state OK or BAD_REQUEST if create failed

changeOutput

public javax.ws.rs.core.Response changeOutput(org.ow2.jasmine.probe.api.generated.OutputBaseType outputDef,
                                              String name)
Description copied from interface: Outputs
Process HTTP PUT requests having /output/{name} URI and updated output definition in its body. Corresponds to output-change -name command.

Specified by:
changeOutput in interface Outputs
Parameters:
outputDef - updated output definition
Returns:
response with state OK or NOT_FOUND or BAD_REQUEST if change failed

deleteOutput

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

Specified by:
deleteOutput in interface Outputs
Parameters:
name - the name of the output to remove
Returns:
response with state OK or NOT_FOUND


Copyright © 2013 OW2 Consortium. All Rights Reserved.