/******************************************************************************* * Copyright (c) 2010 Wolfgang Werner. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Wolfgang Werner - initial API and implementation and/or initial documentation *******************************************************************************/ package net.wolfgangwerner.restlet.registry.test.resources; import org.restlet.resource.Get; import org.restlet.resource.ServerResource; public class Resource2 extends ServerResource { @Get public String hello() { String param = (String) getRequest().getAttributes().get("param"); return "passed " + param; } }