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