|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.api.http.SiteBrowserImpl
public class SiteBrowserImpl
A simple HTTP implementation of the site browser API.
Constructor Summary | |
---|---|
SiteBrowserImpl(org.apache.commons.httpclient.HttpClient httpClient,
java.lang.String hostUrl)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
get(java.lang.String absolutePath)
Send an HTTP GET for a path. |
java.lang.String |
post(ResourceSummary rs)
Send an HTTP post to a resource. |
java.lang.String |
previewContent(ResourceSummary rs,
boolean wc)
Preview how the specified resource will be rendered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SiteBrowserImpl(org.apache.commons.httpclient.HttpClient httpClient, java.lang.String hostUrl)
httpClient
- The HTTP client used to call the server.hostUrl
- The server's base URL.Method Detail |
---|
public java.lang.String previewContent(ResourceSummary rs, boolean wc)
previewContent
in interface SiteBrowser
rs
- The resource to render.wc
- True if the working copy should be rendered; false otherwise.
public java.lang.String post(ResourceSummary rs)
post
in interface SiteBrowser
rs
- The resource to request.
public java.lang.String get(java.lang.String absolutePath)
get
in interface SiteBrowser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |