ccc.api.http
Interface SiteBrowser

All Known Implementing Classes:
SiteBrowserImpl

public interface SiteBrowser

API for browsing rendered resources.

Author:
Civic Computing Ltd.

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.
 

Method Detail

previewContent

java.lang.String previewContent(ResourceSummary rs,
                                boolean wc)
Preview how the specified resource will be rendered.

Parameters:
rs - The resource to render.
wc - True if the working copy should be rendered; false otherwise.
Returns:
The rendered resource as a String.

post

java.lang.String post(ResourceSummary rs)
Send an HTTP post to a resource.

Parameters:
rs - The resource to request.
Returns:
The rendered resource as a String.

get

java.lang.String get(java.lang.String absolutePath)
Send an HTTP GET for a path.

Parameters:
path - The path to GET.
Returns:
The response body, as a string.


Copyright © 2010. All Rights Reserved.