package cj.proxy;

import org.restlet.Application;
import org.restlet.Restlet;
import org.restlet.routing.Router;

public class ProxyApplication extends Application {
	String xUri;
	
	public ProxyApplication(String xUri) {
		this.xUri = xUri;
	}
	
    /**
     * Creates a root Restlet that will receive all incoming calls.
     */
    @Override
    public Restlet createInboundRoot() {
        // Create a router Restlet that routes each call to a
        // new instance of HelloWorldResource.
        Router router = new Router(getContext());

        // Defines only one route
        router.attachDefault(DefaultResource.class);

        return router;
    }

    public String getServerUri() {
    	return xUri;
    }
}
