Geen cache-versie.


Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
javax.xml.soap

Class MimeHeaders


  • public class MimeHeaders
    extends Object
    A container for MimeHeader objects, which represent the MIME headers present in a MIME part of a message.

    This class is used primarily when an application wants to retrieve specific attachments based on certain MIME headers and values. This class will most likely be used by implementations of AttachmentPart and other MIME dependent parts of the SAAJ API.

    See Also:
    SOAPMessage.getAttachments(), AttachmentPart
    • Constructor Detail

      • MimeHeaders

        public MimeHeaders()
        Constructs a default MimeHeaders object initialized with an empty Vector object.
    • Method Detail

      • getHeader

        public String[] getHeader(String name)
        Returns all of the values for the specified header as an array of String objects.
        Parameters:
        name - the name of the header for which values will be returned
        Returns:
        a String array with all of the values for the specified header
        See Also:
        setHeader(java.lang.String, java.lang.String)
      • setHeader

        public void setHeader(String name,
                     String value)
        Replaces the current value of the first header entry whose name matches the given name with the given value, adding a new header if no existing header name matches. This method also removes all matching headers after the first one.

        Note that RFC822 headers can contain only US-ASCII characters.

        Parameters:
        name - a String with the name of the header for which to search
        value - a String with the value that will replace the current value of the specified header
        Throws:
        IllegalArgumentException - if there was a problem in the mime header name or the value being set
        See Also:
        getHeader(java.lang.String)
      • addHeader

        public void addHeader(String name,
                     String value)
        Adds a MimeHeader object with the specified name and value to this MimeHeaders object's list of headers.

        Note that RFC822 headers can contain only US-ASCII characters.

        Parameters:
        name - a String with the name of the header to be added
        value - a String with the value of the header to be added
        Throws:
        IllegalArgumentException - if there was a problem in the mime header name or value being added
      • removeHeader

        public void removeHeader(String name)
        Remove all MimeHeader objects whose name matches the given name.
        Parameters:
        name - a String with the name of the header for which to search
      • removeAllHeaders

        public void removeAllHeaders()
        Removes all the header entries from this MimeHeaders object.
      • getAllHeaders

        public Iterator getAllHeaders()
        Returns all the MimeHeaders in this MimeHeaders object.
        Returns:
        an Iterator object over this MimeHeaders object's list of MimeHeader objects
      • getMatchingHeaders

        public Iterator getMatchingHeaders(String[] names)
        Returns all the MimeHeader objects whose name matches a name in the given array of names.
        Parameters:
        names - an array of String objects with the names for which to search
        Returns:
        an Iterator object over the MimeHeader objects whose name matches one of the names in the given list
      • getNonMatchingHeaders

        public Iterator getNonMatchingHeaders(String[] names)
        Returns all of the MimeHeader objects whose name does not match a name in the given array of names.
        Parameters:
        names - an array of String objects with the names for which to search
        Returns:
        an Iterator object over the MimeHeader objects whose name does not match one of the names in the given list

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-javax/xml/soap/mimeheaders.html/.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut