Sirviendo WebLogic LogFiles como recurso de Jersey

import java.io.File;import java.io.UnsupportedEncodingException;import java.net.URLEncoder;import java.util.logging.Level;import java.util.logging.Logger;import javax.ws.rs.GET;import javax.ws.rs.Path;import javax.ws.rs.PathParam;import javax.ws.rs.Produces;import javax.ws.rs.core.MediaType;import javax.ws.rs.core.Response;import javax.ws.rs.core.UriBuilder;@Path(“/logs”)public class LogResource { private final static Logger LOGGER = Logger.getLogger(LogResource.class.getName()); @GET @Produces(MediaType.TEXT_HTML) public Response list() { StringBuilder …

Leer más