|
|
@ -15,11 +15,6 @@ import java.io.IOException;
|
|
|
|
public class EchoResource extends BaseResource {
|
|
|
|
public class EchoResource extends BaseResource {
|
|
|
|
private final static Logger log = LoggerFactory.getLogger(EchoResource.class);
|
|
|
|
private final static Logger log = LoggerFactory.getLogger(EchoResource.class);
|
|
|
|
|
|
|
|
|
|
|
|
@Get
|
|
|
|
|
|
|
|
public Representation respond() {
|
|
|
|
|
|
|
|
return new StringRepresentation("Please POST some content to echo.");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Post()
|
|
|
|
@Post()
|
|
|
|
public Representation echo(Representation entity) throws IOException {
|
|
|
|
public Representation echo(Representation entity) throws IOException {
|
|
|
|
return getEchoResponse(entity);
|
|
|
|
return getEchoResponse(entity);
|
|
|
|