コード例 #1
0
 public MultivaluedMap<String, String> getFormParameters() {
   // Tomcat does not set getParameters() if it is a PUT request
   // so pull it out manually
   if (request.method.equals("PUT")) {
     return getPutFormParameters();
   }
   if (formParameters != null) return formParameters;
   formParameters = Encode.encode(getDecodedFormParameters());
   return formParameters;
 }
コード例 #2
0
 public MultivaluedMap<String, String> getPutDecodedFormParameters() {
   if (decodedFormParameters != null) return decodedFormParameters;
   decodedFormParameters = Encode.decode(getFormParameters());
   return decodedFormParameters;
 }