public class JAXRSResource extends Object implements JAXRSEndpoint
| Constructor and Description |
|---|
JAXRSResource() |
| Modifier and Type | Method and Description |
|---|---|
SFHandle |
add(String rawAddr,
String path,
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 path,
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 JAXRSResource()
throws IOException
IOExceptionpublic SFHandle add(String rawAddr, String path, InputStream input) throws IOException, GeneralSecurityException
add in interface JAXRSEndpointIOExceptionGeneralSecurityExceptionpublic String findAddressRegistation(String rawAddr)
findAddressRegistation in interface JAXRSEndpointpublic List<SFHandle> findIPFSContent(String rawAddr, Long timeout) throws IOException
findIPFSContent in interface JAXRSEndpointIOExceptionpublic List<SFHandle> findLocalContent(String rawAddr) throws IOException
findLocalContent in interface JAXRSEndpointIOExceptionpublic SFHandle get(String rawAddr, String cid, String path, Long timeout) throws IOException, GeneralSecurityException
get in interface JAXRSEndpointIOExceptionGeneralSecurityExceptionpublic InputStream getLocalContent(String rawAddr, String path) throws IOException
getLocalContent in interface JAXRSEndpointIOExceptionpublic String registerAddress(String rawAddr) throws GeneralSecurityException
registerAddress in interface JAXRSEndpointGeneralSecurityExceptionpublic boolean removeLocalContent(String rawAddr, String path) throws IOException
removeLocalContent in interface JAXRSEndpointIOExceptionpublic SFHandle send(String rawAddr, String cid, @QueryParam(value="target") String rawTarget, Long timeout) throws IOException, GeneralSecurityException
send in interface JAXRSEndpointIOExceptionGeneralSecurityExceptionpublic String unregisterAddress(String rawAddr)
unregisterAddress in interface JAXRSEndpointpublic List<String> removeIPFSContent(String rawAddr, List<String> cids) throws IOException
removeIPFSContent in interface JAXRSEndpointIOExceptionCopyright © 2018. All rights reserved.