public class RESTArtifactLoaderService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Constructor and Description |
|---|
RESTArtifactLoaderService(org.exoplatform.container.xml.InitParams initParams,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService,
org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.jcr.ext.resource.NodeRepresentationService nodeRepresentationService,
org.exoplatform.container.ExoContainerContext context) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getResource(String mavenPath,
javax.ws.rs.core.UriInfo uriInfo,
String view,
String gadget)
Return Response with Maven artifact if it is file or HTML page for browsing if requested URL is
folder.
|
javax.ws.rs.core.Response |
getRootNodeList(javax.ws.rs.core.UriInfo uriInfo,
String view,
String gadget)
Browsing of root node of Maven repository.
|
protected String |
getStreamAsString(InputStream stream) |
public RESTArtifactLoaderService(org.exoplatform.container.xml.InitParams initParams,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService,
org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.jcr.ext.resource.NodeRepresentationService nodeRepresentationService,
org.exoplatform.container.ExoContainerContext context)
throws Exception
initParams - the initialized parameters. Set repository name, workspace name, root node for Maven
repository, username(optional) and password (optional).sessionProviderService - the SessionProviderService.repositoryService - the RepositoryService.nodeRepresentationService - the NodeRepresentationService.Exception - if any errors occur or not valid configuration.public javax.ws.rs.core.Response getResource(String mavenPath, @Context javax.ws.rs.core.UriInfo uriInfo, String view, String gadget)
mavenPath - the relative part of requested URL.uriInfo - view - gadget - Response.public javax.ws.rs.core.Response getRootNodeList(@Context
javax.ws.rs.core.UriInfo uriInfo,
String view,
String gadget)
uriInfo - view - gadget - Response.protected String getStreamAsString(InputStream stream) throws IOException
stream - streamIOException - if any i/o errors occursCopyright © 2016 eXo Platform SAS. All Rights Reserved.