jawr-bundle-processor/src/main/java/net/jawr/web/servlet/mock/MockServletRequest.java
/**
	 * Initialize the parameters from the request path
	 * This is a naive implementation which serves only the purpose of bundle generation.
	 * It don't even handle multiple parameters value...
	 */
Initialize the parameters from the request path
This is a naive implementation which serves only the purpose of bundle generation.
It don't even handle multiple parameters value
Initialize the parameters from the request path This is a naive implementation which serves only the purpose of bundle generation . It don ' t even handle multiple parameters value
private void initParameters()  {
		int idx = requestPath.indexOf("?");
		if(idx != -1){
			String strParams = null;
			try {
				strParams = URLDecoder.decode(requestPath.substring(idx+1), "UTF-8");
			} catch (UnsupportedEncodingException neverHappens) {
				/*URLEncoder:how not to use checked exceptions...*/
				throw new RuntimeException("Something went unexpectedly wrong while decoding a URL for a generator. ",
											neverHappens);
			}
			String[] params = strParams.split("&");
			for (int i = 0; i < params.length; i++) {
				String[] param = params[i].split("=");
				parameters.put(param[0], param[1]);
			}
		}else{ 
			parameters.clear();
		}
	}
private void initParameters ( ) { int idx = requestPath . indexOf ( "?" ) ; if ( idx != - 1 ) { String strParams = null ; try { strParams = URLDecoder . decode ( requestPath . substring ( idx + 1 ) , "UTF-8" ) ; } catch ( UnsupportedEncodingException neverHappens ) { /*URLEncoder:how not to use checked exceptions...*/ throw new RuntimeException ( "Something went unexpectedly wrong while decoding a URL for a generator. " , neverHappens ) ; } String [ ] params = strParams . split ( "&" ) ; for ( int i = 0 ; i < params . length ; i ++ ) { String [ ] param = params [ i ] . split ( "=" ) ; parameters . put ( param [ 0 ] , param [ 1 ] ) ; } } else { parameters . clear ( ) ; } }
Initialize the parameters from the request path
 This is a naive implementation which serves only the purpose of bundle generation.
Initialize the parameters from the request path This is a naive implementation which serves only the purpose of bundle generation .
// No parameters