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