Package org.geoserver.rest.format

Examples of org.geoserver.rest.format.ReflectiveHTMLFormat


    public void test() throws Exception {
        Request request = new Request();
        request.setResourceRef( "http://localhost/rest/foo.html");
        request.getResourceRef().setBaseRef( "http://localhost/rest");
       
        ReflectiveHTMLFormat fmt = new ReflectiveHTMLFormat(Foo.class,request,null,null);
        Representation rep = fmt.toRepresentation(new Foo("one",2,3.0));
        rep.write(System.out);
    }
View Full Code Here


     * This implementation returns a new instance of {@link ReflectiveHTMLFormat}. Subclasses
     * may override as need be.
     * </p>
     */
    protected DataFormat createHTMLFormat(Request request,Response response) {
        return new ReflectiveHTMLFormat(request,response,this);
    }
View Full Code Here

     * This implementation returns a new instance of {@link ReflectiveHTMLFormat}. Subclasses
     * may override as need be.
     * </p>
     */
    protected DataFormat createHTMLFormat(Request request,Response response) {
        return new ReflectiveHTMLFormat(request,response,this);
    }
View Full Code Here

   * org.geoserver.catalog.rest.CatalogResourceBase#createHTMLFormat(org.restlet
   * .data.Request, org.restlet.data.Response)
   */
  @Override
  protected DataFormat createHTMLFormat(Request request, Response response) {
    return new ReflectiveHTMLFormat(RulesList.class, request, response, this) {

      @Override
      protected Configuration createConfiguration(Object data, Class clazz) {
        Configuration cfg = super.createConfiguration(data, clazz);
        cfg.setClassForTemplateLoading(getClass(), "templates");
View Full Code Here

   * org.geoserver.catalog.rest.CatalogResourceBase#createHTMLFormat(org.restlet
   * .data.Request, org.restlet.data.Response)
   */
  @Override
  protected DataFormat createHTMLFormat(Request request, Response response) {
    return new ReflectiveHTMLFormat(LayerAttributesList.class, request, response, this) {

      @Override
      protected Configuration createConfiguration(Object data, Class clazz) {
        Configuration cfg = super.createConfiguration(data, clazz);
        cfg.setClassForTemplateLoading(getClass(), "templates");
View Full Code Here

   * org.geoserver.catalog.rest.CatalogResourceBase#createHTMLFormat(org.restlet
   * .data.Request, org.restlet.data.Response)
   */
  @Override
  protected DataFormat createHTMLFormat(Request request, Response response) {
    return new ReflectiveHTMLFormat(RulesList.class, request, response, this) {

      @Override
      protected Configuration createConfiguration(Object data, Class clazz) {
        final Configuration cfg = super.createConfiguration(data, clazz);
        cfg.setClassForTemplateLoading(getClass(), "templates");
View Full Code Here

   * org.geoserver.catalog.rest.CatalogResourceBase#createHTMLFormat(org.restlet
   * .data.Request, org.restlet.data.Response)
   */
  @Override
  protected DataFormat createHTMLFormat(Request request, Response response) {
    return new ReflectiveHTMLFormat(LayerAttributesList.class, request, response, this) {

      @Override
      protected Configuration createConfiguration(Object data, Class clazz) {
        final Configuration cfg = super.createConfiguration(data, clazz);
        cfg.setClassForTemplateLoading(getClass(), "templates");
View Full Code Here

     * This implementation returns a new instance of {@link ReflectiveHTMLFormat}. Subclasses
     * may override as need be.
     * </p>
     */
    protected DataFormat createHTMLFormat(Request request,Response response) {
        return new ReflectiveHTMLFormat(request,response,this);
    }
View Full Code Here

TOP

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

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.