task_20993 #1
|
@ -185,13 +185,13 @@ public class WekeoResolver {
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Produces({MediaType.TEXT_HTML})
|
@Produces({MediaType.TEXT_HTML})
|
||||||
@Path("/")
|
@Path("")
|
||||||
public InputStream index(@Context HttpServletRequest req) throws WebApplicationException{
|
public InputStream index(@Context HttpServletRequest req) throws WebApplicationException{
|
||||||
|
|
||||||
String indexFile = "/WEB-INF/jsp/wekeo.jsp";
|
String indexFile = "/WEB-INF/jsp/wekeo.jsp";
|
||||||
|
|
||||||
try{
|
try{
|
||||||
logger.info(UriResolverIndex.class.getSimpleName() +" called");
|
logger.info(this.getClass().getSimpleName() +" index called");
|
||||||
String realPath = req.getServletContext().getRealPath(indexFile);
|
String realPath = req.getServletContext().getRealPath(indexFile);
|
||||||
return new FileInputStream(new File(realPath));
|
return new FileInputStream(new File(realPath));
|
||||||
}catch (Exception e) {
|
}catch (Exception e) {
|
||||||
|
|
|
@ -51,7 +51,7 @@ body {
|
||||||
<div class="myTitle">The Wekeo Resolver</div>
|
<div class="myTitle">The Wekeo Resolver</div>
|
||||||
<div class="myListOperations">Available Operations:
|
<div class="myListOperations">Available Operations:
|
||||||
<p>
|
<p>
|
||||||
# authentication operator <a href="gettoken" target="_blank" title="gettoken operation">gettoken</a> (gCube AuthN Required)
|
# authentication operator <a href="/wekeo/gettoken" target="_blank" title="gettoken operation">gettoken</a> (gCube AuthN required)
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="uri-footer">
|
<div class="uri-footer">
|
||||||
|
|
Loading…
Reference in New Issue