Search in sources :

Example 6 with Representation

use of org.restlet.resource.Representation in project GeoGig by boundlessgeo.

the class CommandResource method getRepresentation.

@Override
public Representation getRepresentation(Variant variant) {
    Request request = getRequest();
    Representation representation = runCommand(variant, request);
    return representation;
}
Also used : Request(org.restlet.data.Request) Representation(org.restlet.resource.Representation) WriterRepresentation(org.locationtech.geogig.rest.WriterRepresentation)

Aggregations

Representation (org.restlet.resource.Representation)6 Request (org.restlet.data.Request)4 Form (org.restlet.data.Form)3 MediaType (org.restlet.data.MediaType)3 Optional (com.google.common.base.Optional)2 IOException (java.io.IOException)2 URL (java.net.URL)2 Context (org.locationtech.geogig.api.Context)2 GeoGIG (org.locationtech.geogig.api.GeoGIG)2 AsyncContext (org.locationtech.geogig.rest.AsyncContext)2 RestletException (org.locationtech.geogig.rest.RestletException)2 WriterRepresentation (org.locationtech.geogig.rest.WriterRepresentation)2 CommandSpecException (org.locationtech.geogig.web.api.CommandSpecException)2 Stopwatch (com.google.common.base.Stopwatch)1 CountingInputStream (com.google.common.io.CountingInputStream)1 EncodeRepresentation (com.noelios.restlet.application.EncodeRepresentation)1 File (java.io.File)1 InputStream (java.io.InputStream)1 XMLStreamException (javax.xml.stream.XMLStreamException)1 Mapping (org.locationtech.geogig.osm.internal.Mapping)1