org.openqa.selenium.server
Class BrowserSessionFactory.BrowserSessionInfo

java.lang.Object
  extended by org.openqa.selenium.server.BrowserSessionFactory.BrowserSessionInfo
Enclosing class:
BrowserSessionFactory

public static class BrowserSessionFactory.BrowserSessionInfo
extends Object

Collection class to hold the objects associated with a browser session.

Author:
[email protected] (Jennifer Bevan)

Field Summary
 String baseUrl
           
 String browserString
           
 long lastClosedAt
           
 org.openqa.selenium.browserlaunchers.BrowserLauncher launcher
           
 FrameGroupCommandQueueSet session
           
 String sessionId
           
 
Constructor Summary
BrowserSessionFactory.BrowserSessionInfo(String sessionId, String browserString, String baseUrl, org.openqa.selenium.browserlaunchers.BrowserLauncher launcher, FrameGroupCommandQueueSet session)
           
 
Method Summary
protected static boolean isValid(BrowserSessionFactory.BrowserSessionInfo sessionInfo)
          Browser sessions require the session id, the browser, the base URL, and the launcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionId

public final String sessionId

browserString

public final String browserString

baseUrl

public final String baseUrl

launcher

public final org.openqa.selenium.browserlaunchers.BrowserLauncher launcher

session

public final FrameGroupCommandQueueSet session

lastClosedAt

public long lastClosedAt
Constructor Detail

BrowserSessionFactory.BrowserSessionInfo

public BrowserSessionFactory.BrowserSessionInfo(String sessionId,
                                                String browserString,
                                                String baseUrl,
                                                org.openqa.selenium.browserlaunchers.BrowserLauncher launcher,
                                                FrameGroupCommandQueueSet session)
Method Detail

isValid

protected static boolean isValid(BrowserSessionFactory.BrowserSessionInfo sessionInfo)
Browser sessions require the session id, the browser, the base URL, and the launcher. They don't actually require the session to be set up as a FrameGroupCommandQueueSet.

Parameters:
sessionInfo - the sessionInfo to validate.
Returns:
true if all fields excepting session are non-null.


Copyright © 2012. All Rights Reserved.