Interface IAttachment


public interface IAttachment
This interface represents an attachment; generally a multipart part.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieve the value for "Content-ID" in headers.
    jakarta.ws.rs.core.MediaType
    Retrieve the value for "Content-Type" in headers.
    jakarta.activation.DataHandler
    Retrieve DataHandler of IAttachmetn.
    Retrieve the value whose key is name in header.
    jakarta.ws.rs.core.MultivaluedMap<String,String>
    Retrieve header in IAttachment.
  • Method Details

    • getContentId

      String getContentId()
      Retrieve the value for "Content-ID" in headers.
      Returns:
      the value for "Content-ID" in headers.
    • getContentType

      jakarta.ws.rs.core.MediaType getContentType()
      Retrieve the value for "Content-Type" in headers.
      Returns:
      the value for "Content-Type" in headers.
    • getDataHandler

      jakarta.activation.DataHandler getDataHandler()
      Retrieve DataHandler of IAttachmetn.
      Returns:
      DataHandler of IAttachmetn.
    • getHeader

      String getHeader(String name)
      Retrieve the value whose key is name in header.
      Parameters:
      name - - the key in header.
      Returns:
    • getHeaders

      jakarta.ws.rs.core.MultivaluedMap<String,String> getHeaders()
      Retrieve header in IAttachment.
      Returns:
      header in IAttachment.