com.xpn.xwiki.plugin.google
Class GooglePluginApi

java.lang.Object
  extended bycom.xpn.xwiki.api.Api
      extended bycom.xpn.xwiki.plugin.google.GooglePluginApi

public class GooglePluginApi
extends Api


Field Summary
private  GooglePlugin plugin
           
 
Fields inherited from class com.xpn.xwiki.api.Api
context
 
Constructor Summary
GooglePluginApi(GooglePlugin plugin, XWikiContext context)
           
 
Method Summary
 byte[] doGetCachedPage(java.lang.String clientKey, java.lang.String url)
           
 com.google.api.search.GoogleSearchResult doGoogleSearch(java.lang.String clientKey, java.lang.String query)
           
 com.google.api.search.GoogleSearchResult doGoogleSearch(java.lang.String clientKey, java.lang.String query, int start)
           
 com.google.api.search.GoogleSearchResult doGoogleSearch(java.lang.String clientKey, java.lang.String query, int start, int maxResults, boolean filter, java.lang.String restrict, boolean safeSearch, java.lang.String lr, java.lang.String ie, java.lang.String oe)
           
 com.google.api.search.GoogleSearchResult doGoogleSearch(java.lang.String clientKey, java.lang.String query, int start, java.lang.String lr)
           
 java.lang.String doSpellingSuggestion(java.lang.String clientKey, java.lang.String text)
           
 GooglePlugin getPlugin()
           
 void setPlugin(GooglePlugin plugin)
           
 
Methods inherited from class com.xpn.xwiki.api.Api
checkProgrammingRights, hasAccessLevel, hasAdminRights, hasProgrammingRights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

plugin

private GooglePlugin plugin
Constructor Detail

GooglePluginApi

public GooglePluginApi(GooglePlugin plugin,
                       XWikiContext context)
Method Detail

getPlugin

public GooglePlugin getPlugin()

setPlugin

public void setPlugin(GooglePlugin plugin)

doSpellingSuggestion

public java.lang.String doSpellingSuggestion(java.lang.String clientKey,
                                             java.lang.String text)
                                      throws javax.xml.rpc.ServiceException,
                                             java.rmi.RemoteException
Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException

doGetCachedPage

public byte[] doGetCachedPage(java.lang.String clientKey,
                              java.lang.String url)
                       throws java.rmi.RemoteException,
                              javax.xml.rpc.ServiceException
Throws:
java.rmi.RemoteException
javax.xml.rpc.ServiceException

doGoogleSearch

public com.google.api.search.GoogleSearchResult doGoogleSearch(java.lang.String clientKey,
                                                               java.lang.String query,
                                                               int start,
                                                               int maxResults,
                                                               boolean filter,
                                                               java.lang.String restrict,
                                                               boolean safeSearch,
                                                               java.lang.String lr,
                                                               java.lang.String ie,
                                                               java.lang.String oe)
                                                        throws java.rmi.RemoteException,
                                                               javax.xml.rpc.ServiceException
Throws:
java.rmi.RemoteException
javax.xml.rpc.ServiceException

doGoogleSearch

public com.google.api.search.GoogleSearchResult doGoogleSearch(java.lang.String clientKey,
                                                               java.lang.String query)
                                                        throws java.rmi.RemoteException,
                                                               javax.xml.rpc.ServiceException
Throws:
java.rmi.RemoteException
javax.xml.rpc.ServiceException

doGoogleSearch

public com.google.api.search.GoogleSearchResult doGoogleSearch(java.lang.String clientKey,
                                                               java.lang.String query,
                                                               int start)
                                                        throws java.rmi.RemoteException,
                                                               javax.xml.rpc.ServiceException
Throws:
java.rmi.RemoteException
javax.xml.rpc.ServiceException

doGoogleSearch

public com.google.api.search.GoogleSearchResult doGoogleSearch(java.lang.String clientKey,
                                                               java.lang.String query,
                                                               int start,
                                                               java.lang.String lr)
                                                        throws java.rmi.RemoteException,
                                                               javax.xml.rpc.ServiceException
Throws:
java.rmi.RemoteException
javax.xml.rpc.ServiceException


Copyright 2003 Ludovic Dubost