Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public final class MockMultipartFile

  1. Object
  2. MockMultipartFile

Constructors

public MockMultipartFile(String name, byte[] content)A file part named name, with no filename or content type.
public MockMultipartFile(String name, String originalFilename, String contentType, byte[] content)A file part with the filename and content type a browser would send.

Methods

public String getName()
public String getOriginalFilename()
public String getContentType()
public byte[] getBytes()

Inherited methods

Constructor details

MockMultipartFile

public MockMultipartFile(String name, byte[] content)
A file part named name, with no filename or content type.

MockMultipartFile

public MockMultipartFile(String name, String originalFilename, String contentType, byte[] content)
A file part with the filename and content type a browser would send.

Method details

getName

public String getName()

getOriginalFilename

public String getOriginalFilename()

getContentType

public String getContentType()

getBytes

public byte[] getBytes()