fr.opensagres.xdocreport.remoting.resources.services.client.jaxrs
Class JAXRSResourcesServiceClient
java.lang.Object
fr.opensagres.xdocreport.remoting.resources.services.client.jaxrs.JAXRSResourcesServiceClient
- All Implemented Interfaces:
- JAXRSResourcesService, ResourcesService
public class JAXRSResourcesServiceClient
- extends Object
- implements JAXRSResourcesService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAXRSResourcesServiceClient
public JAXRSResourcesServiceClient(String baseAddress,
String username,
String password,
Long connectionTimeout,
Boolean allowChunking)
getName
public String getName()
- Description copied from interface:
ResourcesService
- Returns the repository name.
- Specified by:
getName
in interface JAXRSResourcesService
- Specified by:
getName
in interface ResourcesService
- Returns:
getRoot
public Resource getRoot()
- Description copied from interface:
ResourcesService
- Returns the root resource.
- Specified by:
getRoot
in interface JAXRSResourcesService
- Specified by:
getRoot
in interface ResourcesService
- Returns:
getRootWithFilter
public Resource getRootWithFilter(Filter filter)
- Specified by:
getRootWithFilter
in interface ResourcesService
downloadMultiple
public List<BinaryData> downloadMultiple(List<String> resourceIds)
- Specified by:
downloadMultiple
in interface ResourcesService
download
public BinaryData download(String resourceId)
- Description copied from interface:
ResourcesService
- Download the content of the given unique resource id.
- Specified by:
download
in interface JAXRSResourcesService
- Specified by:
download
in interface ResourcesService
- Returns:
- the byte array of the content of the given resourcePath.
upload
public void upload(BinaryData data)
- Specified by:
upload
in interface JAXRSResourcesService
- Specified by:
upload
in interface ResourcesService
reset
protected void reset()
downloadLarge
public LargeBinaryData downloadLarge(String resourceId)
throws ResourcesException
- Specified by:
downloadLarge
in interface JAXRSResourcesService
- Throws:
ResourcesException
uploadLarge
public void uploadLarge(LargeBinaryData data)
throws ResourcesException
- Specified by:
uploadLarge
in interface JAXRSResourcesService
- Throws:
ResourcesException
Copyright © 2013. All rights reserved.