moved the port-type to /oat/get and removed doc generation
This commit is contained in:
parent
6f57ebec3d
commit
31d1828cb3
|
@ -10,8 +10,7 @@
|
||||||
pattern="org.gcube.datatransfer.resolver.services.UriResolverIndex" />
|
pattern="org.gcube.datatransfer.resolver.services.UriResolverIndex" />
|
||||||
<exclude
|
<exclude
|
||||||
pattern="org.gcube.datatransfer.resolver.services.UriResolverInfo" />
|
pattern="org.gcube.datatransfer.resolver.services.UriResolverInfo" />
|
||||||
<!-- <exclude pattern="org.gcube.datatransfer.resolver.services.GoatResolver"
|
<exclude pattern="org.gcube.datatransfer.resolver.services.OatResolver" />
|
||||||
/> -->
|
|
||||||
<exclude
|
<exclude
|
||||||
pattern="org.gcube.datatransfer.resolver.services.tobackward.BackCatalogueResolver" />
|
pattern="org.gcube.datatransfer.resolver.services.tobackward.BackCatalogueResolver" />
|
||||||
<exclude
|
<exclude
|
||||||
|
|
|
@ -20,13 +20,30 @@ import org.gcube.datatransfer.resolver.services.error.ExceptionManager;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@Path("goat")
|
|
||||||
public class GoatResolver {
|
|
||||||
|
|
||||||
private static Logger LOG = LoggerFactory.getLogger(GoatResolver.class);
|
/**
|
||||||
|
* The Class OatResolver.
|
||||||
|
*
|
||||||
|
* generates an old authz token from an UMAToken
|
||||||
|
*
|
||||||
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
||||||
|
*
|
||||||
|
* Apr 5, 2022
|
||||||
|
*/
|
||||||
|
@Path("oat")
|
||||||
|
public class OatResolver {
|
||||||
|
|
||||||
|
private static Logger LOG = LoggerFactory.getLogger(OatResolver.class);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the legacy token.
|
||||||
|
*
|
||||||
|
* @param req the req
|
||||||
|
* @return the legacy token
|
||||||
|
* @throws WebApplicationException the web application exception
|
||||||
|
*/
|
||||||
@GET
|
@GET
|
||||||
@Path("/gettoken")
|
@Path("/get")
|
||||||
@Produces(MediaType.TEXT_PLAIN)
|
@Produces(MediaType.TEXT_PLAIN)
|
||||||
public Response getLegacyToken(@Context HttpServletRequest req) throws WebApplicationException {
|
public Response getLegacyToken(@Context HttpServletRequest req) throws WebApplicationException {
|
||||||
LOG.info(this.getClass().getSimpleName() + " GET starts...");
|
LOG.info(this.getClass().getSimpleName() + " GET starts...");
|
Loading…
Reference in New Issue