/** * Adds several request parameters. * @param key the * @param values the request values */ public void addRequestParameter(String key, String[] values) { mockFactory.getMockRequest().setupAddParameter(key, values); }
/** * Adds a request parameter. * @param key the request key * @param value the request value */ public void addRequestParameter(String key, String value) { mockFactory.getMockRequest().setupAddParameter(key, value); }
/** * Adds several request parameters. * @param key the * @param values the request values */ public void addRequestParameter(String key, String[] values) { mockFactory.getMockRequest().setupAddParameter(key, values); }
/** * Adds a request parameter. * @param key the request key * @param value the request value */ public void addRequestParameter(String key, String value) { mockFactory.getMockRequest().setupAddParameter(key, value); }
/** * Adds several request parameters. * @param key the * @param values the request values */ public void addRequestParameter(String key, String[] values) { mockFactory.getMockRequest().setupAddParameter(key, values); }
/** * Calls the current servlets <code>doOptions</code> method. * If you set <i>doChain</i> to <code>true</code> (use {@link #setDoChain}), * the filter chain will be called before <code>doOptions</code>. */ public void doOptions() { mockFactory.getMockRequest().setMethod("OPTIONS"); callService(); }
/** * Calls the current servlets <code>doPost</code> method. * If you set <i>doChain</i> to <code>true</code> (use {@link #setDoChain}), * the filter chain will be called before <code>doPost</code>. */ public void doPost() { mockFactory.getMockRequest().setMethod("POST"); callService(); }
/** * Calls the current servlets <code>doOptions</code> method. * If you set <i>doChain</i> to <code>true</code> (use {@link #setDoChain}), * the filter chain will be called before <code>doOptions</code>. */ public void doOptions() { mockFactory.getMockRequest().setMethod("OPTIONS"); callService(); }
/** * Calls the current servlets <code>doHead</code> method. * If you set <i>doChain</i> to <code>true</code> (use {@link #setDoChain}), * the filter chain will be called before <code>doHead</code>. */ public void doHead() { mockFactory.getMockRequest().setMethod("HEAD"); callService(); }
/** * Calls the current servlets <code>doDelete</code> method. * If you set <i>doChain</i> to <code>true</code> (use {@link #setDoChain}), * the filter chain will be called before <code>doDelete</code>. */ public void doDelete() { mockFactory.getMockRequest().setMethod("DELETE"); callService(); }
/** * Calls the current servlets <code>doHead</code> method. * If you set <i>doChain</i> to <code>true</code> (use {@link #setDoChain}), * the filter chain will be called before <code>doHead</code>. */ public void doHead() { mockFactory.getMockRequest().setMethod("HEAD"); callService(); }
/** * Calls the current servlets <code>doDelete</code> method. * If you set <i>doChain</i> to <code>true</code> (use {@link #setDoChain}), * the filter chain will be called before <code>doDelete</code>. */ public void doDelete() { mockFactory.getMockRequest().setMethod("DELETE"); callService(); }
/** * Calls the current servlets <code>doGet</code> method. * If you set <i>doChain</i> to <code>true</code> (use {@link #setDoChain}), * the filter chain will be called before <code>doGet</code>. */ public void doGet() { mockFactory.getMockRequest().setMethod("GET"); callService(); }
/** * Calls the current servlets <code>doPost</code> method. * If you set <i>doChain</i> to <code>true</code> (use {@link #setDoChain}), * the filter chain will be called before <code>doPost</code>. */ public void doPost() { mockFactory.getMockRequest().setMethod("POST"); callService(); }
/** * Calls the current servlets <code>doHead</code> method. * If you set <i>doChain</i> to <code>true</code> (use {@link #setDoChain}), * the filter chain will be called before <code>doHead</code>. */ public void doHead() { mockFactory.getMockRequest().setMethod("HEAD"); callService(); }
/** * Calls the current servlets <code>doOptions</code> method. * If you set <i>doChain</i> to <code>true</code> (use {@link #setDoChain}), * the filter chain will be called before <code>doOptions</code>. */ public void doOptions() { mockFactory.getMockRequest().setMethod("OPTIONS"); callService(); }
/** * Calls the current servlets <code>doTrace</code> method. * If you set <i>doChain</i> to <code>true</code> (use {@link #setDoChain}), * the filter chain will be called before <code>doTrace</code>. */ public void doTrace() { mockFactory.getMockRequest().setMethod("TRACE"); callService(); }
/** * Calls the current servlets <code>doDelete</code> method. * If you set <i>doChain</i> to <code>true</code> (use {@link #setDoChain}), * the filter chain will be called before <code>doDelete</code>. */ public void doDelete() { mockFactory.getMockRequest().setMethod("DELETE"); callService(); }
/** * Calls the current servlets <code>doGet</code> method. * If you set <i>doChain</i> to <code>true</code> (use {@link #setDoChain}), * the filter chain will be called before <code>doGet</code>. */ public void doGet() { mockFactory.getMockRequest().setMethod("GET"); callService(); }
/** * Calls the current servlets <code>doPut</code> method. * If you set <i>doChain</i> to <code>true</code> (use {@link #setDoChain}), * the filter chain will be called before <code>doPut</code>. */ public void doPut() { mockFactory.getMockRequest().setMethod("PUT"); callService(); }