String charset = (contentType != null && contentType.getCharset() != null) ? contentType.getCharset().name() : null; if (charset == null) charset = getEncoding();
String charset = (contentType!=null && contentType.getCharset()!=null)? contentType.getCharset().name(): null; if (charset==null) charset = getEncoding();
ContentType type = ContentType.create(contentType, getEncoding());
"metadata", xml, ContentType.create("application/xml", getEncoding()));
ContentType type = ContentType.create( contentType, getEncoding() );
"metadata", xml, ContentType.create( "application/xml", getEncoding() ) );
"auth", auth, ContentType.create("text/plain", getEncoding()));
"auth", auth, ContentType.create( "text/plain", getEncoding() ) );