org.carrot2.input.googleapi
Class GoogleApiKey

java.lang.Object
  extended by org.carrot2.input.googleapi.GoogleApiKey

final class GoogleApiKey
extends Object

A google API key.

Version:
$Revision: 2122 $
Author:
Dawid Weiss

Field Summary
static int WAIT_TIME_LIMIT_EXCEEDED
          12 hours
static int WAIT_TIME_UNKNOWN_PROBLEM
          15 minutes
 
Constructor Summary
GoogleApiKey(String key)
          Creates a google API key and maximum results this key may serve.
GoogleApiKey(String key, String name)
           
 
Method Summary
(package private)  int getInvalidPeriod()
           
 String getKey()
           
 String getName()
          Returns the name of this key.
 boolean isInvalid()
           
 void setInvalid(boolean flag, int invalidatePeriod)
           
(package private)  void setValid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WAIT_TIME_LIMIT_EXCEEDED

public static final int WAIT_TIME_LIMIT_EXCEEDED
12 hours

See Also:
Constant Field Values

WAIT_TIME_UNKNOWN_PROBLEM

public static final int WAIT_TIME_UNKNOWN_PROBLEM
15 minutes

See Also:
Constant Field Values
Constructor Detail

GoogleApiKey

public GoogleApiKey(String key)
Creates a google API key and maximum results this key may serve.


GoogleApiKey

public GoogleApiKey(String key,
                    String name)
Method Detail

getKey

public final String getKey()

getName

public String getName()
Returns the name of this key.


isInvalid

public boolean isInvalid()

setInvalid

public void setInvalid(boolean flag,
                       int invalidatePeriod)

getInvalidPeriod

int getInvalidPeriod()

setValid

void setValid()


Copyright (c) Dawid Weiss, Stanislaw Osinski