424N/A * The contents of this file are subject to the terms of the 424N/A * Common Development and Distribution License (the "License"). 424N/A * You may not use this file except in compliance with the License. 424N/A * language governing permissions and limitations under the License. 424N/A * When distributing Covered Code, include this CDDL HEADER in each 424N/A * If applicable, add the following below this CDDL HEADER, with the 424N/A * fields enclosed by brackets "[]" replaced with your own identifying 424N/A * information: Portions Copyright [yyyy] [name of copyright owner] 424N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 424N/A * An dummy implementation of {@code HttpServletRequest} in which most methods 424N/A * simply throw an exception. Unit tests that need an instance of 424N/A * {@code HttpServletRequest} can create sub-classes that implement those 424N/A * methods needed by the test case. * Some methods that would have similar implementations in all sub-classes, * like set/get pairs, could be implemented here. Methods that would require * different implementations depending on the test, should rather just throw * an exception and let the tests override them.