public class SauceConfigChangeServlet
extends org.openqa.grid.web.servlet.RegistryBasedServlet
RegistryBasedServlet based servlet updates the Sauce Configuration json file based on the input provided
via POST operation and re-loads the SauceConfigReader properties. For GET request it will return the
updateSauceConfigPage.html content. URL of the Servlet :
http://{hub-host}:{hub-port}/grid/admin/SauceConfigChangeServlet. LoginServlet available.| Modifier and Type | Field and Description |
|---|---|
static String |
ACCESS_KEY_PARAM
Form parameter for the sauce access key
|
static String |
PARENT_TUNNEL_PARAM
Form parameter for the sauce parent tunnel
|
static String |
REQUIRE_USER_CREDENTIALS_PARAM
Form parameter for require user supplied sauce credentials
|
static String |
RESOURCE_PAGE_FILE
Resource path to the sauce config html file
|
static String |
RETRY_PARAM
Form parameter for retry count on errors communicating with sauce api
|
static String |
SAUCE_URL_PARAM
Form parameter for sauce url
|
static String |
TIMEOUT_PARAM
Form parameter for timeout when communicating with sauce api
|
static String |
TUNNEL_IDENTIFIER_PARAM
Form parameter for the sauce tunnel identifier
|
static String |
USERNAME_PARAM
Form parameter for the sauce username
|
| Constructor and Description |
|---|
SauceConfigChangeServlet() |
SauceConfigChangeServlet(org.openqa.grid.internal.Registry registry) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String RESOURCE_PAGE_FILE
public static final String SAUCE_URL_PARAM
public static final String USERNAME_PARAM
public static final String RETRY_PARAM
public static final String TIMEOUT_PARAM
public static final String ACCESS_KEY_PARAM
public static final String PARENT_TUNNEL_PARAM
public static final String TUNNEL_IDENTIFIER_PARAM
public static final String REQUIRE_USER_CREDENTIALS_PARAM
public SauceConfigChangeServlet(org.openqa.grid.internal.Registry registry)
public SauceConfigChangeServlet()
protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionCopyright © 2016 PayPal Open Source. All rights reserved.