
org.openfact.services.resources.RobotsResource Maven / Gradle / Ivy
The newest version!
package org.openfact.services.resources;
import javax.ejb.Stateless;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Stateless
@Path("/robots.txt")
public class RobotsResource {
private static final String robots = "User-agent: *\n" + "Disallow: /";
@GET
@Produces(MediaType.TEXT_PLAIN)
public String getRobots() {
return robots;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy