|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.repository.remoteapi.RestAPI
public class RestAPI
This provides a simple REST style remote friendly API.
Constructor Summary | |
---|---|
RestAPI(RulesRepository repo)
|
Method Summary | |
---|---|
void |
delete(String path)
Should be pretty obvious what this is for. |
Response |
get(String path)
This works off: packages/packageName --> returns list of : asset name=ISO date time last modified,versionNumber packages/packageName/.package --> the contents of the package header packages/packageName/assetName --> the contents of the package |
static SimpleDateFormat |
getISODateFormat()
This is the format used to sent dates as text, always. |
void |
post(String path,
InputStream in,
String comment)
post is for new content. |
void |
put(String path,
Calendar lastModified,
InputStream in,
String comment)
Put is for updating content. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RestAPI(RulesRepository repo)
Method Detail |
---|
public Response get(String path) throws UnsupportedEncodingException
UnsupportedEncodingException
public static SimpleDateFormat getISODateFormat()
public void post(String path, InputStream in, String comment) throws RulesRepositoryException, IOException
IOException
RulesRepositoryException
public void put(String path, Calendar lastModified, InputStream in, String comment) throws IOException
IOException
public void delete(String path) throws UnsupportedEncodingException
UnsupportedEncodingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |