public class JAXRSClient extends Object implements JAXRSEndpoint
| Constructor and Description |
|---|
JAXRSClient(URI urlRoot) |
| Modifier and Type | Method and Description |
|---|---|
SFHandle |
add(String rawAddr,
String relPath,
InputStream input) |
String |
findAddressRegistation(String rawAddr) |
List<SFHandle> |
findIPFSContent(String rawAddr,
Long timeout) |
List<SFHandle> |
findLocalContent(String rawAddr) |
SFHandle |
get(String rawAddr,
String cid,
String relPath,
Long timeout) |
InputStream |
getLocalContent(String rawAddr,
String path) |
String |
registerAddress(String rawAddr) |
List<String> |
removeIPFSContent(String rawAddr,
List<String> cids) |
boolean |
removeLocalContent(String rawAddr,
String path) |
SFHandle |
send(String rawAddr,
String cid,
String rawTarget,
Long timeout) |
String |
unregisterAddress(String rawAddr) |
public JAXRSClient(URI urlRoot)
public String registerAddress(String rawAddr) throws IOException
registerAddress in interface JAXRSEndpointIOExceptionpublic String unregisterAddress(String rawAddr) throws IOException
unregisterAddress in interface JAXRSEndpointIOExceptionpublic SFHandle add(String rawAddr, String relPath, InputStream input) throws IOException
add in interface JAXRSEndpointIOExceptionpublic SFHandle get(String rawAddr, String cid, String relPath, Long timeout) throws IOException
get in interface JAXRSEndpointIOExceptionpublic SFHandle send(String rawAddr, String cid, String rawTarget, Long timeout) throws IOException
send in interface JAXRSEndpointIOExceptionpublic String findAddressRegistation(String rawAddr) throws IOException
findAddressRegistation in interface JAXRSEndpointIOExceptionpublic List<SFHandle> findIPFSContent(String rawAddr, Long timeout) throws IOException
findIPFSContent in interface JAXRSEndpointIOExceptionpublic List<String> removeIPFSContent(String rawAddr, List<String> cids) throws IOException
removeIPFSContent in interface JAXRSEndpointIOExceptionpublic List<SFHandle> findLocalContent(String rawAddr) throws IOException
findLocalContent in interface JAXRSEndpointIOExceptionpublic InputStream getLocalContent(String rawAddr, String path) throws IOException
getLocalContent in interface JAXRSEndpointIOExceptionpublic boolean removeLocalContent(String rawAddr, String path) throws IOException
removeLocalContent in interface JAXRSEndpointIOExceptionCopyright © 2018. All rights reserved.