Package com.swinarta.sunflower.server.resources

Source Code of com.swinarta.sunflower.server.resources.ConfigResource

package com.swinarta.sunflower.server.resources;

import java.util.Properties;

import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;

import com.swinarta.sunflower.server.model.SgwtRestFetchResponseBase;
import com.swinarta.sunflower.server.model.SgwtRestResponseBase;

public class ConfigResource extends ServerResource{

  private Properties properties;

 
  public void setProperties(Properties properties) {
    this.properties = properties;
  }

  @Get("json")
  public SgwtRestResponseBase getRepresent(){   
    return new SgwtRestFetchResponseBase(properties);   
  }
 
}
TOP

Related Classes of com.swinarta.sunflower.server.resources.ConfigResource

TOP
Copyright © 2018 www.massapi.com. 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.