Interface IAttachment


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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getContentId()
      Retrieve the value for "Content-ID" in headers.
      javax.ws.rs.core.MediaType getContentType()
      Retrieve the value for "Content-Type" in headers.
      javax.activation.DataHandler getDataHandler()
      Retrieve DataHandler of IAttachmetn.
      java.lang.String getHeader​(java.lang.String name)
      Retrieve the value whose key is name in header.
      javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> getHeaders()
      Retrieve header in IAttachment.
    • Method Detail

      • getContentId

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

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

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

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

        javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> getHeaders()
        Retrieve header in IAttachment.
        Returns:
        header in IAttachment.