com.lokan.gmlib
Class GMSession

java.lang.Object
  extended by com.lokan.gmlib.GMSession

public class GMSession
extends java.lang.Object

This class represents a GM session. All operations within this library requires a GMSession instance. Note: The class has no "keep alive" functionality so inactive sessions could be terminated on the google side (cookie expires).


Constructor Summary
GMSession(java.lang.String username, java.lang.String password)
          Creates a new instance of GMSession and performs a login.
GMSession(java.lang.String username, java.lang.String password, Proxy proxy)
          Creates a new instance of GMSession and performs a login.
 
Method Summary
 void logout()
          Performs a logout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMSession

public GMSession(java.lang.String username,
                 java.lang.String password)
Creates a new instance of GMSession and performs a login.

Parameters:
username - Username to authenticate with.
password - Password to autenticate with.
Throws:
GMException - Throws exception if authentication fails for some reason.

GMSession

public GMSession(java.lang.String username,
                 java.lang.String password,
                 Proxy proxy)
Creates a new instance of GMSession and performs a login.

Parameters:
username - Username to authenticate with.
password - Password to autenticate with.
proxy - Proxy to use.
Throws:
GMException - Throws exception if authentication fails for some reason.
Method Detail

logout

public void logout()
Performs a logout.

Throws:
GMException - Throws exception if logout fails for some reason.


Copyright © 2007. All Rights Reserved.