org.chenillekit.google.services.impl
Class AbstractGoogleService

java.lang.Object
  extended by org.chenillekit.google.services.impl.AbstractGoogleService
Direct Known Subclasses:
GoogleGeoCoderImpl

public abstract class AbstractGoogleService
extends Object

Version:
$Id: AbstractGoogleService.java 670 2010-07-19 09:22:02Z mlusetti $

Constructor Summary
protected AbstractGoogleService(Logger logger, String googleKey, int timeout, String referer, String proxy)
          standard constructor.
 
Method Summary
protected  String getEncodedString(String source)
          encode string if not null.
 String getKey()
          the google access key.
 String getProxy()
          get the proxy.
 ProxySelector getProxySelector()
          the the default proxy selector.
 String getReferer()
          the configured referer.
 int getTimeout()
          timeout for service request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGoogleService

protected AbstractGoogleService(Logger logger,
                                String googleKey,
                                int timeout,
                                String referer,
                                String proxy)
standard constructor.

Parameters:
logger - system logger
Method Detail

getEncodedString

protected String getEncodedString(String source)
                           throws UnsupportedEncodingException
encode string if not null.

Throws:
UnsupportedEncodingException

getProxySelector

public ProxySelector getProxySelector()
the the default proxy selector.


getProxy

public String getProxy()
get the proxy.


getReferer

public String getReferer()
the configured referer.


getTimeout

public int getTimeout()
timeout for service request.


getKey

public String getKey()
the google access key.



Copyright © 2008-2010 ChenilleKit. All Rights Reserved.