package name.pehl.taoki.security;
import org.restlet.data.MediaType;
import org.restlet.representation.Representation;
import org.restlet.representation.StringRepresentation;
import org.restlet.resource.ResourceException;
import org.restlet.resource.ServerResource;
/**
* @author $Author: harald.pehl $
* @version $Date: 2012-03-02 08:50:20 -0600 (Fri, 02 Mar 2012) $ $Revision: 219 $
*/
public class HitchhikingResourceSecuredAnnotation extends ServerResource
{
@Secured
@Override
protected Representation get() throws ResourceException
{
return new StringRepresentation("Don't panic", MediaType.TEXT_PLAIN);
}
}