org.openqa.grid.internal.listeners
Interface CommandListener

All Known Implementing Classes:
DefaultRemoteProxy, SeleniumRemoteProxy, WebDriverRemoteProxy

public interface CommandListener

wrapped around each request received and forwarded by the hub.


Method Summary
 void afterCommand(TestSession session, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Executed just before the forwards returns.
 void beforeCommand(TestSession session, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Executed before the hub forwards the request. reading the content of the request stream will prevent the content from being forwarded.
 

Method Detail

beforeCommand

void beforeCommand(TestSession session,
                   javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
Executed before the hub forwards the request. reading the content of the request stream will prevent the content from being forwarded.

Throwing an exception will prevent the forward to the remote.

Parameters:
session -
request -
response -

afterCommand

void afterCommand(TestSession session,
                  javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
Executed just before the forwards returns.

Throwing an exception will result in an error for the client.

Parameters:
session -
request -
response -


Copyright © 2011. All Rights Reserved.