JAIN-SIP 2.0 API

javax.sip.header
Interface Encoding

All Known Subinterfaces:
AcceptEncodingHeader, ContentEncodingHeader

public interface Encoding

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

Since:
1.1
Version:
2.0
Author:
Oracle Inc., 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

JAIN-SIP 2.0 API


See conditions of use.
Submit a bug report or feature request.