public static Part.PartMap create(String name, Payload delegate, Part.PartOptions options) { String filename = options != null ? options.getFilename() : null; if (delegate instanceof FilePayload) filename = FilePayload.class.cast(delegate).getRawContent().getName(); Part.PartMap returnVal; returnVal = (filename != null) ? create(name, filename) : create(name); if (options != null) returnVal.contentType(options.getContentType()); return returnVal; } }
public static Part.PartMap create(String name, Payload delegate, Part.PartOptions options) { String filename = options != null ? options.getFilename() : null; if (delegate instanceof FilePayload) filename = FilePayload.class.cast(delegate).getRawContent().getName(); Part.PartMap returnVal; returnVal = (filename != null) ? create(name, filename) : create(name); if (options != null) returnVal.contentType(options.getContentType()); return returnVal; } }
public static Part.PartMap create(String name, Payload delegate, Part.PartOptions options) { String filename = options != null ? options.getFilename() : null; if (delegate instanceof FilePayload) filename = FilePayload.class.cast(delegate).getRawContent().getName(); Part.PartMap returnVal; returnVal = (filename != null) ? create(name, filename) : create(name); if (options != null) returnVal.contentType(options.getContentType()); return returnVal; } }
public static Part create(String name, Payload delegate, Part.PartOptions options) { return new Part(name, PartMap.create(name, delegate, options), delegate); }
public static Part create(String name, String value) { return new Part(name, PartMap.create(name), Payloads.newStringPayload(value)); }
public static Part create(String name, Payload delegate, Part.PartOptions options) { return new Part(name, PartMap.create(name, delegate, options), delegate); }
public static Part create(String name, Payload delegate, Part.PartOptions options) { return new Part(name, PartMap.create(name, delegate, options), delegate); }
public static Part create(String name, Payload delegate, Part.PartOptions options) { return new Part(name, PartMap.create(name, delegate, options), delegate); }
public static Part create(String name, String value) { return new Part(name, PartMap.create(name), Payloads.newStringPayload(value)); }
public static Part create(String name, String value) { return new Part(name, PartMap.create(name), Payloads.newStringPayload(value)); }
public static Part create(String name, String value) { return new Part(name, PartMap.create(name), Payloads.newStringPayload(value)); }
public static Part create(String name, String value) { return new Part(name, PartMap.create(name), Payloads.newStringPayload(value)); }
public static Part create(String name, Payload delegate, Part.PartOptions options) { return new Part(name, PartMap.create(name, delegate, options), delegate); }
public static Part create(String name, String value) { return new Part(name, PartMap.create(name), Payloads.newStringPayload(value)); }
public static Part.PartMap create(String name, Payload delegate, Part.PartOptions options) { String filename = options != null ? options.getFilename() : null; if (delegate instanceof FilePayload) filename = FilePayload.class.cast(delegate).getRawContent().getName(); Part.PartMap returnVal; returnVal = (filename != null) ? create(name, filename) : create(name); if (options != null) returnVal.contentType(options.getContentType()); return returnVal; } }
public static Part create(String name, Payload delegate, Part.PartOptions options) { return new Part(name, PartMap.create(name, delegate, options), delegate); }
public static Part.PartMap create(String name, Payload delegate, Part.PartOptions options) { String filename = options != null ? options.getFilename() : null; if (delegate instanceof FilePayload) filename = FilePayload.class.cast(delegate).getRawContent().getName(); Part.PartMap returnVal; returnVal = (filename != null) ? create(name, filename) : create(name); if (options != null) returnVal.contentType(options.getContentType()); return returnVal; } }
public static Part.PartMap create(String name, Payload delegate, Part.PartOptions options) { String filename = options != null ? options.getFilename() : null; if (delegate instanceof FilePayload) filename = FilePayload.class.cast(delegate).getRawContent().getName(); Part.PartMap returnVal; returnVal = (filename != null) ? create(name, filename) : create(name); if (options != null) returnVal.contentType(options.getContentType()); return returnVal; } }