org.exoplatform.services.jcr.ext.artifact.rest
Class RESTArtifactLoaderService
java.lang.Object
org.exoplatform.services.jcr.ext.artifact.rest.RESTArtifactLoaderService
- All Implemented Interfaces:
- org.exoplatform.services.rest.resource.ResourceContainer
public class RESTArtifactLoaderService
- extends Object
- implements org.exoplatform.services.rest.resource.ResourceContainer
- Version:
- $Id: RESTArtifactLoaderService.java 11:37:47 andrew00x $
- Author:
- Volodymyr Krasnikov volodymyr.krasnikov@exoplatform.com.ua
|
Constructor Summary |
RESTArtifactLoaderService(org.exoplatform.container.xml.InitParams initParams,
org.exoplatform.services.jcr.ext.app.ThreadLocalSessionProviderService sessionProviderService,
org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.jcr.ext.resource.NodeRepresentationService nodeRepresentationService,
org.exoplatform.container.ExoContainerContext context)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESTArtifactLoaderService
public RESTArtifactLoaderService(org.exoplatform.container.xml.InitParams initParams,
org.exoplatform.services.jcr.ext.app.ThreadLocalSessionProviderService sessionProviderService,
org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.jcr.ext.resource.NodeRepresentationService nodeRepresentationService,
org.exoplatform.container.ExoContainerContext context)
throws Exception
- Parameters:
initParams - the initialized parameters. Set repository name, workspace name, root node for Maven
repository, username(optional) and password (optional).sessionProviderService - the ThreadLocalSessionProviderService.repositoryService - the RepositoryService.nodeRepresentationService - the NodeRepresentationService.
- Throws:
Exception - if any errors occur or not valid configuration.
getResource
public javax.ws.rs.core.Response getResource(String mavenPath,
@Context
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.
- Parameters:
mavenPath - the relative part of requested URL.base - the base URL.
- Returns:
- @see
Response.
getRootNodeList
public javax.ws.rs.core.Response getRootNodeList(@Context
javax.ws.rs.core.UriInfo uriInfo,
String view,
String gadget)
- Browsing of root node of Maven repository.
- Parameters:
base - the base URL.
- Returns:
- @see
Response.
getStreamAsString
protected String getStreamAsString(InputStream stream)
throws IOException
- Parameters:
stream - stream
- Returns:
- string representation of stream
- Throws:
IOException - if any i/o errors occurs
Copyright © 2013 eXo Platform SAS. All Rights Reserved.