org.openqa.grid.internal.utils
Class ForwardConfiguration

java.lang.Object
  extended by org.openqa.grid.internal.utils.ForwardConfiguration

public class ForwardConfiguration
extends Object

some requests have to be more than just forwarded. For instance for selenium1, the new session request contains the sessionId in the body of the response, so the response has to be read. ForwardConfig gather all those special cases.


Constructor Summary
ForwardConfiguration()
           
 
Method Summary
 String getContentOverWrite()
           
 SeleniumProtocol getProtocol()
           
 boolean isBodyHasToBeRead()
           
 boolean isNewSessionRequest()
           
 void setBodyHasToBeRead(boolean bodyHasToBeRead)
          true = the body of the request will be read before being forwarded.
 void setContentOverWrite(String contentOverWrite)
          if !=null : the body of the request will be replaced by contentOverWrite.
 void setNewSessionRequest(boolean isNewSessionRequest)
           
 void setProtocol(SeleniumProtocol protocol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardConfiguration

public ForwardConfiguration()
Method Detail

getProtocol

public SeleniumProtocol getProtocol()

setProtocol

public void setProtocol(SeleniumProtocol protocol)

isBodyHasToBeRead

public boolean isBodyHasToBeRead()

setBodyHasToBeRead

public void setBodyHasToBeRead(boolean bodyHasToBeRead)
true = the body of the request will be read before being forwarded.

Parameters:
bodyHasToBeRead -

isNewSessionRequest

public boolean isNewSessionRequest()

setNewSessionRequest

public void setNewSessionRequest(boolean isNewSessionRequest)

getContentOverWrite

public String getContentOverWrite()

setContentOverWrite

public void setContentOverWrite(String contentOverWrite)
if !=null : the body of the request will be replaced by contentOverWrite.

Parameters:
contentOverWrite -


Copyright © 2012. All Rights Reserved.