Skip to content

Instantly share code, notes, and snippets.

@roycef
roycef / web.xml
Created January 12, 2011 14:56
Security Constraint in web.xml - Google App Engine Java
<!-- place this in your web.xml file -->
<security-constraint>
<web-resource-collection>
<url-pattern>/data/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
@roycef
roycef / MapReduceServlet.java
Created October 28, 2010 15:25
Modified MapReduceServlet.java and accompanying configuration files to allow the start of Map Reduce tasks via HTTP GET
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software