private void addParameterToMap(MultipleEntryHashMap parameterMap, String paramName, String paramValue) throws UnsupportedEncodingException, AxisFault { try { paramValue = URIEncoderDecoder.decode(paramValue); } catch (UnsupportedEncodingException e) { throw AxisFault.makeFault(e); } if (paramName.startsWith(WSDL2Constants.TEMPLATE_ENCODE_ESCAPING_CHARACTER)) { parameterMap.put(paramName.substring(1), paramValue); } else { parameterMap.put(paramName, paramValue); } }
private void addParameterToMap(MultipleEntryHashMap parameterMap, String paramName, String paramValue) throws UnsupportedEncodingException, AxisFault { try { paramValue = URIEncoderDecoder.decode(paramValue); } catch (UnsupportedEncodingException e) { throw AxisFault.makeFault(e); } if (paramName.startsWith(WSDL2Constants.TEMPLATE_ENCODE_ESCAPING_CHARACTER)) { parameterMap.put(paramName.substring(1), paramValue); } else { parameterMap.put(paramName, paramValue); } }
private void addParameterToMap(MultipleEntryHashMap parameterMap, String paramName, String paramValue) throws UnsupportedEncodingException, AxisFault { try { paramValue = URIEncoderDecoder.decode(paramValue); } catch (UnsupportedEncodingException e) { throw AxisFault.makeFault(e); } if (paramName.startsWith(WSDL2Constants.TEMPLATE_ENCODE_ESCAPING_CHARACTER)) { parameterMap.put(paramName.substring(1), paramValue); } else { parameterMap.put(paramName, paramValue); } } }
String name = token.substring(0, token.indexOf("=")); String value = token.substring(token.indexOf("=")+1); parameterMap.put(name, value);
String name = token.substring(0, token.indexOf("=")); String value = token.substring(token.indexOf("=")+1); parameterMap.put(name, value);
private MultipleEntryHashMap getParameterMap(HttpServletRequest request, String charSetEncoding) throws FileUploadException { MultipleEntryHashMap parameterMap = new MultipleEntryHashMap(); List items = parseRequest(new ServletRequestContext(request)); Iterator iter = items.iterator(); while (iter.hasNext()) { DiskFileItem diskFileItem = (DiskFileItem)iter.next(); boolean isFormField = diskFileItem.isFormField(); Object value; try { if (isFormField) { value = getTextParameter(diskFileItem, charSetEncoding); } else { value = getFileParameter(diskFileItem); } } catch (Exception ex) { throw new FileUploadException(ex.getMessage()); } parameterMap.put(diskFileItem.getFieldName(), value); } return parameterMap; }
private MultipleEntryHashMap getParameterMap(HttpServletRequest request, String charSetEncoding) throws FileUploadException { MultipleEntryHashMap parameterMap = new MultipleEntryHashMap(); List items = parseRequest(new ServletRequestContext(request)); Iterator iter = items.iterator(); while (iter.hasNext()) { DiskFileItem diskFileItem = (DiskFileItem)iter.next(); boolean isFormField = diskFileItem.isFormField(); Object value; try { if (isFormField) { value = getTextParameter(diskFileItem, charSetEncoding); } else { value = getFileParameter(diskFileItem); } } catch (Exception ex) { throw new FileUploadException(ex.getMessage()); } parameterMap.put(diskFileItem.getFieldName(), value); } return parameterMap; }