uri-resolver/src/main/java/org/gcube/datatransfer/resolver/services/UriResolverInfo.java

40 lines
857 B
Java
Raw Normal View History

/**
*
*/
package org.gcube.datatransfer.resolver.services;
import java.io.InputStream;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
/**
2022-03-24 17:33:54 +01:00
* The Class UriResolverInfo.
*
2022-03-24 17:33:54 +01:00
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* Mar 24, 2022
*/
@Path("info")
public class UriResolverInfo {
2022-03-24 17:33:54 +01:00
/**
* Info.
*
* @param req the req
* @return the input stream
* @throws WebApplicationException the web application exception
*/
@GET
2022-03-24 17:33:54 +01:00
@Produces({ MediaType.TEXT_HTML })
@Path("")
2022-03-24 17:33:54 +01:00
public InputStream info(@Context HttpServletRequest req) throws WebApplicationException {
return new UriResolverIndex().index(req);
}
}