Class MultipartRelatedInputImpl

    • Constructor Detail

      • MultipartRelatedInputImpl

        public MultipartRelatedInputImpl​(javax.ws.rs.core.MediaType contentType,
                                         javax.ws.rs.ext.Providers workers)
      • MultipartRelatedInputImpl

        public MultipartRelatedInputImpl​(org.apache.james.mime4j.dom.Multipart multipart,
                                         javax.ws.rs.ext.Providers workers)
                                  throws IOException
        Throws:
        IOException
    • Method Detail

      • getRootPart

        public InputPart getRootPart()
        Specified by:
        getRootPart in interface MultipartRelatedInput
        Returns:
        the root part of the message. If a start parameter was set in the message header the part with that id is returned. If no start parameter was set the first part is returned.
      • getStart

        public String getStart()
        Description copied from interface: MultipartRelatedInput
        A start parameter is not mandatory in a message. If it is presented it holds the id of the root part.
        Specified by:
        getStart in interface MultipartRelatedInput
        Returns:
        the start parameter of the content-type header of the message, null if there was no such parameter
      • getType

        public String getType()
        Description copied from interface: MultipartRelatedInput
        The type parameter as it was read from the content-type header of the multipart/related message. A well formed multipart/related message always has this parameter. This is the type of the root part of the message. If a content-type header is presented in the root part as well it should hold the same value.
        Specified by:
        getType in interface MultipartRelatedInput
        Returns:
        the type parameter of the content-type header of the message, null if there was no such parameter