com.indeed.proctor.consumer.spring
Class AbstractShowTestGroupsController
java.lang.Object
com.indeed.proctor.consumer.spring.AbstractShowTestGroupsController
- All Implemented Interfaces:
- ShowGroupsHandler.GroupsSupplier
public abstract class AbstractShowTestGroupsController
- extends Object
- implements ShowGroupsHandler.GroupsSupplier
To get basic showGroups functionality mount this controller and implement determineGroups(HttpServletRequest request).
All request handlers are guarded by PrivilegedIPs.isPrivileged
eg @RequestMapping(value = "/private", method = RequestMethod.GET)
Will get the following routes:
private/showGroups
private/showRandomGroups
private/showTestMatrix
You can force yourself into a group at any point using prforceGroups=xx
http://www.indeed.com/private/showGroups?prforceGroups=btnuitst3,testx0
- Author:
- parker
|
Method Summary |
protected int |
getAccessDeniedStatusCode()
|
abstract boolean |
isAccessAllowed(javax.servlet.http.HttpServletRequest request)
Override this if the show groups controller should only be shown to specific types of requests. |
void |
showGroups(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
showRandomGroups(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
showTestMatrix(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractShowTestGroupsController
public AbstractShowTestGroupsController(AbstractProctorLoader proctorSupplier)
showGroups
@RequestMapping(value="/showGroups")
public void showGroups(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
showRandomGroups
@RequestMapping(value="/showRandomGroups")
public void showRandomGroups(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
showTestMatrix
@RequestMapping(value="/showTestMatrix")
public void showTestMatrix(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
isAccessAllowed
public abstract boolean isAccessAllowed(javax.servlet.http.HttpServletRequest request)
- Override this if the show groups controller should only be shown to specific types of requests.
eg. restricted by IP
- Parameters:
request -
- Returns:
getAccessDeniedStatusCode
protected int getAccessDeniedStatusCode()
Copyright © 2014. All Rights Reserved.