Package com.saperion.rs
Class WeblinkService
- java.lang.Object
-
- com.saperion.rs.RestService
-
- com.saperion.rs.AbstractWeblinkService
-
- com.saperion.rs.WeblinkService
-
@Path("/weblink") @Singleton public class WeblinkService extends AbstractWeblinkServiceThis JAX-RS resource represents the content service. URL: /weblink.- Author:
- dam
-
-
Constructor Summary
Constructors Constructor Description WeblinkService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsegenerate(javax.ws.rs.core.UriInfo info, javax.servlet.http.HttpServletRequest request, WeblinkParameter params)Generates weblink url.javax.ws.rs.core.ResponsegetContent(javax.ws.rs.core.UriInfo info, javax.servlet.http.HttpServletRequest request, WeblinkParameter params)Retrieves the requested document element and returns it as a download attachment.javax.ws.rs.core.ResponsegetContentWithoutFilename(javax.ws.rs.core.UriInfo info, javax.servlet.http.HttpServletRequest request, WeblinkParameter params)Retrieves the requested document element and returns it as a download attachment.-
Methods inherited from class com.saperion.rs.AbstractWeblinkService
appendToFilename, getContent, getFilenameFromDocElement, getHDoc, getTypedId, logAndThrowWebException, sendBadRequestMessage
-
Methods inherited from class com.saperion.rs.RestService
checkConnection, getConnection
-
-
-
-
Method Detail
-
generate
@GET @Path("/url") @Produces("application/octet-stream") public javax.ws.rs.core.Response generate(@Context javax.ws.rs.core.UriInfo info, @Context javax.servlet.http.HttpServletRequest request, @Context WeblinkParameter params)Generates weblink url.- Parameters:
info- the UriInforequest- the HttpServletRequestparams- the WeblinkParameter injected byWeblinkParameterFactory- Returns:
- the response
-
getContentWithoutFilename
@GET @Path("/{archive}/{field}/{id}/{element}") @Produces("application/octet-stream") public javax.ws.rs.core.Response getContentWithoutFilename(@Context javax.ws.rs.core.UriInfo info, @Context javax.servlet.http.HttpServletRequest request, @Context WeblinkParameter params)Retrieves the requested document element and returns it as a download attachment. Filename of downloaded attachment is generated by the element fullname.- Parameters:
info- the inforequest- the requestparams- the params- Returns:
- the content without filename
-
getContent
@GET @Path("/{archive}/{field}/{id}/{element}/{filename}") @Produces("application/octet-stream") public javax.ws.rs.core.Response getContent(@Context javax.ws.rs.core.UriInfo info, @Context javax.servlet.http.HttpServletRequest request, @Context WeblinkParameter params)Retrieves the requested document element and returns it as a download attachment.- Parameters:
info- the inforequest- injected HttpServletRequestparams- the params- Returns:
- processing dependent Response.
-
-