@Path(value="/")
public interface JAXRSEndpoint
| 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) |
@GET @Path(value="/register") @Produces(value="text/plain") String registerAddress(@QueryParam(value="addr") String rawAddr) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOException@GET @Path(value="/rmaddr") @Produces(value="text/plain") String unregisterAddress(@QueryParam(value="addr") String rawAddr) throws IOException
IOException@POST @Path(value="/add") @Produces(value="application/json") SFHandle add(@QueryParam(value="addr") String rawAddr, @QueryParam(value="path") String path, InputStream input) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityException@GET @Path(value="/get") @Produces(value="application/json") SFHandle get(@QueryParam(value="addr") String rawAddr, @QueryParam(value="cid") String cid, @QueryParam(value="path") String path, @QueryParam(value="timeout") Long timeout) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityException@GET @Path(value="/send") @Produces(value="application/json") SFHandle send(@QueryParam(value="addr") String rawAddr, @QueryParam(value="cid") String cid, @QueryParam(value="target") String rawTarget, @QueryParam(value="timeout") Long timeout) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityException@GET @Path(value="/findkey") @Produces(value="application/json") String findAddressRegistation(@QueryParam(value="addr") String rawAddr) throws IOException
IOException@GET @Path(value="/findipfs") @Produces(value="application/json") List<SFHandle> findIPFSContent(@QueryParam(value="addr") String rawAddr, @QueryParam(value="timeout") Long timeout) throws IOException
IOException@GET @Path(value="/rmipfs") @Produces(value="application/json") List<String> removeIPFSContent(@QueryParam(value="addr") String rawAddr, @QueryParam(value="cids") List<String> cids) throws IOException
IOException@GET @Path(value="/findlocal") @Produces(value="application/json") List<SFHandle> findLocalContent(@QueryParam(value="addr") String rawAddr) throws IOException
IOException@GET @Path(value="/getlocal") @Produces(value="application/octet-stream") InputStream getLocalContent(@QueryParam(value="addr") String rawAddr, @QueryParam(value="path") String path) throws IOException
IOException@GET
@Path(value="/rmlocal")
@Produces(value="text/plain")
boolean removeLocalContent(@QueryParam(value="addr")
String rawAddr,
@QueryParam(value="path")
String path)
throws IOException
IOExceptionCopyright © 2018. All rights reserved.