public void setQueryStringEncoding( String s ) { queryStringEncoding=s; if(debug>0) log( "Set query string encoding to " + s ); }
public void setEncoding( String s ) { encoding=s; if(debug>0) log( "Set encoding to " + s ); }
/** Combine the parameters from parent with our local ones */ private void merge() { // recursive if( debug > 0 ) { log("Before merging " + this + " " + parent + " " + didMerge ); log( paramsAsString()); } // Local parameters first - they take precedence as in spec. handleQueryParameters(); // we already merged with the parent if( didMerge ) return; // we are the top level if( parent==null ) return; // Add the parent props to the child ( lower precedence ) parent.merge(); Hashtable<String,String[]> parentProps=parent.paramHashStringArray; merge2( paramHashStringArray , parentProps); didMerge=true; if(debug > 0 ) log("After " + paramsAsString()); }
/** Process the query string into parameters */ public void handleQueryParameters() { if( didQueryParameters ) return; didQueryParameters=true; if( queryMB==null || queryMB.isNull() ) return; if( debug > 0 ) log( "Decoding query " + decodedQuery + " " + queryStringEncoding); try { decodedQuery.duplicate( queryMB ); } catch (IOException e) { // Can't happen, as decodedQuery can't overflow e.printStackTrace(); } processParameters( decodedQuery, queryStringEncoding ); }
/** Process the query string into parameters */ public void handleQueryParameters() { if (didQueryParameters) return; didQueryParameters = true; if (queryMB == null || queryMB.isNull()) return; if (debug > 0) log("Decoding query " + decodedQuery + " " + queryStringEncoding); try { decodedQuery.duplicate(queryMB); } catch (IOException e) { // Can't happen, as decodedQuery can't overflow e.printStackTrace(); } processParameters(decodedQuery, queryStringEncoding); }
int pos=0; if( debug > 0) log("String: " + str ); valStart=nameEnd; valEnd=nameEnd; if( debug>0) log("no equal " + nameStart + " " + nameEnd + " " + str.substring(nameStart, nameEnd) ); log( "XXX " + nameStart + " " + nameEnd + " " + valStart + " " + valEnd ); log( tmpNameC + "= " + tmpValueC); log( tmpNameC + "= " + tmpValueC);