Skip to content

Instantly share code, notes, and snippets.

@dimacus
Created March 26, 2013 21:54
Show Gist options
  • Save dimacus/5249668 to your computer and use it in GitHub Desktop.
Save dimacus/5249668 to your computer and use it in GitHub Desktop.
//Change private to protected
protected UrlMapper getUrlMapper(String method) {
if ("DELETE".equals(method)) {
return deleteMapper;
} else if ("GET".equals(method)) {
return getMapper;
} else if ("POST".equals(method)) {
return postMapper;
} else {
throw new IllegalArgumentException("Unknown method: " + method);
}
}
@dimacus
Copy link
Author

dimacus commented Mar 26, 2013

Reason for changing the getUrlMapper to protected is to allow me to write a plugin that will add custom end points to the selenium grid, which would allow me to stabilize my build on IE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment