com.google.caja.demos.playground.client
Interface PlaygroundService

All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
All Known Implementing Classes:
GWTCajolingServiceImpl

@RemoteServiceRelativePath(value="cajole")
public interface PlaygroundService
extends com.google.gwt.user.client.rpc.RemoteService

The client side stub for the RPC cajoling service.

Author:
jasvir@gmail.com (Jasvir Nagra)

Field Summary
static int ERRORS
           
static int HTML
           
static int JAVASCRIPT
           
 
Method Summary
 CajolingServiceResult cajole(java.lang.String uri, java.lang.String input, boolean debugMode)
          Cajoles input and returns cajoled output and error messages
 java.lang.String fetch(java.lang.String url)
          Fetches the document located at uri as a string
 java.lang.String getBuildInfo()
          Returns build info as a string
 

Field Detail

HTML

static final int HTML
See Also:
Constant Field Values

JAVASCRIPT

static final int JAVASCRIPT
See Also:
Constant Field Values

ERRORS

static final int ERRORS
See Also:
Constant Field Values
Method Detail

cajole

CajolingServiceResult cajole(java.lang.String uri,
                             java.lang.String input,
                             boolean debugMode)
Cajoles input and returns cajoled output and error messages

Parameters:
uri - Set input source to uri (used only for error messages)
input - Source to cajole
Returns:
cajoled html, js and cajoling messages

getBuildInfo

java.lang.String getBuildInfo()
Returns build info as a string


fetch

java.lang.String fetch(java.lang.String url)
Fetches the document located at uri as a string

Parameters:
url - the URL to fetch.
Returns:
the document if it exists, null else


Copyright (C) 2008 Google Inc.
Licensed under the Apache License, Version 2.0