NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

javax.sip.header
Interface Encoding

All Known Subinterfaces:
AcceptEncodingHeader, ContentEncodingHeader
All Known Implementing Classes:
AcceptEncoding, ContentEncoding

public interface Encoding

This interface represents encoding methods for any header that contains an encoding value.

Version:
1.2
Author:
BEA Systems, NIST
See Also:
AcceptEncodingHeader, ContentEncodingHeader

Method Summary
 String getEncoding()
          Gets the encoding of an EncodingHeader.
 void setEncoding(String encoding)
          Sets the encoding of an EncodingHeader.
 

Method Detail

setEncoding

void setEncoding(String encoding)
                 throws ParseException
Sets the encoding of an EncodingHeader.

Parameters:
encoding - - the new string value defining the encoding.
Throws:
ParseException - which signals that an error has been reached unexpectedly while parsing the encoding value.

getEncoding

String getEncoding()
Gets the encoding of an EncodingHeader. Returns null if no encoding is defined in an EncodingHeader.

Returns:
the string value identifing the encoding

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.