Package org.geoserver.rest.format

Examples of org.geoserver.rest.format.ReflectiveJSONFormat


        };
    }
   
    @Override
    protected ReflectiveJSONFormat createJSONFormat(Request request,Response response) {
        return new ReflectiveJSONFormat() {
            @Override
            protected void write(Object data, OutputStream output)
                    throws IOException {
                XStreamPersister p = xpf.createJSONPersister();
                p.setCatalog(catalog);
View Full Code Here


     * This implementation returns a new instance of {@link ReflectiveJSONLFormat}. Subclasses
     * may override as need be.
     * </p>
     */
    protected ReflectiveJSONFormat createJSONFormat(Request request,Response response) {
        ReflectiveJSONFormat format = new ReflectiveJSONFormat();
        configureXStream( format.getXStream() );
        return format;
    }
View Full Code Here

     * This implementation returns a new instance of {@link ReflectiveJSONLFormat}. Subclasses
     * may override as need be.
     * </p>
     */
    protected ReflectiveJSONFormat createJSONFormat(Request request,Response response) {
        ReflectiveJSONFormat format = new ReflectiveJSONFormat();
        configureXStream( format.getXStream() );
        return format;
    }
View Full Code Here

   * org.geoserver.catalog.rest.AbstractCatalogResource#createJSONFormat(org
   * .restlet.data.Request, org.restlet.data.Response)
   */
  @Override
  protected ReflectiveJSONFormat createJSONFormat(Request request, Response response) {
    return new ReflectiveJSONFormat() {

      /*
       * (non-Javadoc)
       *
       * @see
 
View Full Code Here

   * .restlet.data.Request, org.restlet.data.Response)
   */
  @Override
  protected ReflectiveJSONFormat createJSONFormat(Request request,
      Response response) {
    return new ReflectiveJSONFormat() {

      /*
       * (non-Javadoc)
       *
       * @see
 
View Full Code Here

   * org.geoserver.catalog.rest.AbstractCatalogResource#createJSONFormat(org
   * .restlet.data.Request, org.restlet.data.Response)
   */
  @Override
  protected ReflectiveJSONFormat createJSONFormat(Request request, Response response) {
    return new ReflectiveJSONFormat() {

      /**
       * @see
       * org.geoserver.rest.format.ReflectiveJSONFormat#write(java.lang
       * .Object, java.io.OutputStream)
View Full Code Here

   * .restlet.data.Request, org.restlet.data.Response)
   */
  @Override
  protected ReflectiveJSONFormat createJSONFormat(Request request,
      Response response) {
    return new ReflectiveJSONFormat() {

      /**
       * @see
       * org.geoserver.rest.format.ReflectiveJSONFormat#write(java.lang
       * .Object, java.io.OutputStream)
View Full Code Here

        };
    }
   
    @Override
    protected ReflectiveJSONFormat createJSONFormat(Request request,Response response) {
        return new ReflectiveJSONFormat() {
            @Override
            protected void write(Object data, OutputStream output)
                    throws IOException {
                XStreamPersister p = xpf.createJSONPersister();
                p.setCatalog(catalog);
View Full Code Here

     * This implementation returns a new instance of {@link ReflectiveJSONLFormat}. Subclasses
     * may override as need be.
     * </p>
     */
    protected ReflectiveJSONFormat createJSONFormat(Request request,Response response) {
        ReflectiveJSONFormat format = new ReflectiveJSONFormat();
        configureXStream( format.getXStream() );
        return format;
    }
View Full Code Here

    //JD: we create custom formats here because we need to set up the collection aliases
    // correctly, basically whatever collection we get back we ant to alias to layers, featureTypes,
    // coverages, styles, etc...
    @Override
    protected ReflectiveJSONFormat createJSONFormat(Request request, Response response) {
        final ReflectiveJSONFormat f = super.createJSONFormat(request, response);
        return new ReflectiveJSONFormat() {
            @Override
            public XStream getXStream() {
                return f.getXStream();
            }
           
            @Override
            protected void write(Object data, OutputStream output) throws IOException {
                aliasCollection(data, f.getXStream());
                f.getXStream().toXML(data, output);
            }
        };
    }
View Full Code Here

TOP

Related Classes of org.geoserver.rest.format.ReflectiveJSONFormat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.