2019-02-19 15:18:19 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
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.
|
2019-02-19 15:18:19 +01:00
|
|
|
*
|
2022-03-24 17:33:54 +01:00
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
|
|
|
*
|
|
|
|
* Mar 24, 2022
|
2019-02-19 15:18:19 +01:00
|
|
|
*/
|
|
|
|
@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
|
|
|
|
*/
|
2019-02-19 15:18:19 +01:00
|
|
|
@GET
|
2022-03-24 17:33:54 +01:00
|
|
|
@Produces({ MediaType.TEXT_HTML })
|
2019-02-19 15:18:19 +01:00
|
|
|
@Path("")
|
2022-03-24 17:33:54 +01:00
|
|
|
public InputStream info(@Context HttpServletRequest req) throws WebApplicationException {
|
2019-02-19 15:18:19 +01:00
|
|
|
return new UriResolverIndex().index(req);
|
|
|
|
}
|
|
|
|
}
|