/** * Set a new value for the query string. The query string will be parsed and * all parameters reset. * * @param queryString representing the new value. i.e.: "bug=1&id=23" */ public FakeHttpServletRequest setQueryString(String queryString) { this.queryString = queryString; parameters.clear(); decodeQueryString(queryString, parameters); return this; }
/** * Set a new value for the query string. The query string will be parsed and * all parameters reset. * * @param queryString representing the new value. i.e.: "bug=1&id=23" */ public FakeHttpServletRequest setQueryString(String queryString) { this.queryString = queryString; parameters.clear(); decodeQueryString(queryString, parameters); return this; }
/** * Set a new value for the query string. The query string will be parsed and * all parameters reset. * * @param queryString representing the new value. i.e.: "bug=1&id=23" */ public FakeHttpServletRequest setQueryString(String queryString) { this.queryString = queryString; parameters.clear(); decodeQueryString(queryString, parameters); return this; }
/** * Set a new value for the query string. The query string will be parsed and * all parameters reset. * * @param queryString representing the new value. i.e.: "bug=1&id=23" */ public FakeHttpServletRequest setQueryString(String queryString) { this.queryString = queryString; parameters.clear(); decodeQueryString(queryString, parameters); return this; }
/** * Set a new value for the query string. The query string will be parsed and * all parameters reset. * * @param queryString representing the new value. i.e.: "bug=1&id=23" */ public FakeHttpServletRequest setQueryString(String queryString) { this.queryString = queryString; parameters.clear(); decodeQueryString(queryString, parameters); return this; }
/** * This method serves as the central constructor of this class. The reason it * is not an actual constructor is that Java doesn't allow calling another * constructor at the end of a constructor. e.g. * * <pre> * public FakeHttpServletRequest(String foo) { * // Do something here * this(foo, bar); // calling another constructor here is not allowed * } * </pre> */ protected void constructor(String host, int port, String contextPath, String servletPath, String queryString) { setHeader(HOST_HEADER, host); this.port = port; this.contextPath = contextPath; this.servletPath = servletPath; this.queryString = queryString; if (queryString != null) { decodeQueryString(queryString, parameters); } }
/** * This method serves as the central constructor of this class. The reason it * is not an actual constructor is that Java doesn't allow calling another * constructor at the end of a constructor. e.g. * * <pre> * public FakeHttpServletRequest(String foo) { * // Do something here * this(foo, bar); // calling another constructor here is not allowed * } * </pre> */ protected void constructor(String host, int port, String contextPath, String servletPath, String queryString) { setHeader(HOST_HEADER, host); this.port = port; this.contextPath = contextPath; this.servletPath = servletPath; this.queryString = queryString; if (queryString != null) { decodeQueryString(queryString, parameters); } }
/** * This method serves as the central constructor of this class. The reason it * is not an actual constructor is that Java doesn't allow calling another * constructor at the end of a constructor. e.g. * * <pre> * public FakeHttpServletRequest(String foo) { * // Do something here * this(foo, bar); // calling another constructor here is not allowed * } * </pre> */ protected void constructor(String host, int port, String contextPath, String servletPath, String queryString) { setHeader(HOST_HEADER, host); this.port = port; this.contextPath = contextPath; this.servletPath = servletPath; this.queryString = queryString; if (queryString != null) { decodeQueryString(queryString, parameters); } }
/** * This method serves as the central constructor of this class. The reason it * is not an actual constructor is that Java doesn't allow calling another * constructor at the end of a constructor. e.g. * * <pre> * public FakeHttpServletRequest(String foo) { * // Do something here * this(foo, bar); // calling another constructor here is not allowed * } * </pre> */ protected void constructor(String host, int port, String contextPath, String servletPath, String queryString) { setHeader(HOST_HEADER, host); this.port = port; this.contextPath = contextPath; this.servletPath = servletPath; this.queryString = queryString; if (queryString != null) { decodeQueryString(queryString, parameters); } }
/** * This method serves as the central constructor of this class. The reason it * is not an actual constructor is that Java doesn't allow calling another * constructor at the end of a constructor. e.g. * * <pre> * public FakeHttpServletRequest(String foo) { * // Do something here * this(foo, bar); // calling another constructor here is not allowed * } * </pre> */ protected void constructor(String host, int port, String contextPath, String servletPath, String queryString) { setHeader(HOST_HEADER, host); this.port = port; this.contextPath = contextPath; this.servletPath = servletPath; this.queryString = queryString; if (queryString != null) { decodeQueryString(queryString, parameters); } }