code: public static String decodeContentDisposition(String value, Map<String, String> params) {
          try {
              HeaderTokenizer tokenizer = new HeaderTokenizer(value);
              // get the first token, which must be an ATOM
              Token token = tokenizer.next();
              if (token.getType() != Token.ATOM) {
                  return null;
              }
              String disposition = token.getValue();
              // value ignored in this method
  
              // the remainder is the parameters
              String remainder = tokenizer.getRemainder();
              if (remainder != null) {
                  getParameters(remainder, params);
              }
              return disposition;
          } catch (ParseException e) {
              return null;
          }
      }
docs: Decodes the Content-Disposition header value according to RFC 2183 and
  RFC 2231.
  <p/>
  Does not deal with continuation lines.
  <p/>
  See <a href="http://tools.ietf.org/html/rfc2231">RFC 2231</a> for
  details.
  
  @param value  the header value to decode
  @param params the map of parameters to fill
  @return the disposition