1package javax.sip.header; 2 3import java.text.ParseException; 4import javax.sip.InvalidArgumentException; 5 6public interface WarningHeader extends Header { 7 String NAME = "Warning"; 8 9 int ATTRIBUTE_NOT_UNDERSTOOD = 10; 10 int INCOMPATIBLE_BANDWIDTH_UNITS = 20; 11 int INCOMPATIBLE_MEDIA_FORMAT = 21; 12 int INCOMPATIBLE_NETWORK_ADDRESS_FORMATS = 22; 13 int INCOMPATIBLE_NETWORK_PROTOCOL = 23; 14 int INCOMPATIBLE_TRANSPORT_PROTOCOL = 24; 15 int INSUFFICIENT_BANDWIDTH = 30; 16 int MEDIA_TYPE_NOT_AVAILABLE = 40; 17 int MISCELLANEOUS_WARNING = 99; 18 int MULTICAST_NOT_AVAILABLE = 50; 19 int SESSION_DESCRIPTION_PARAMETER_NOT_UNDERSTOOD = 60; 20 int UNICAST_NOT_AVAILABLE = 51; 21 22 String getAgent(); 23 void setAgent(String agent) throws ParseException; 24 25 int getCode(); 26 void setCode(int code) throws InvalidArgumentException; 27 28 String getText(); 29 void setText(String text) throws ParseException; 30} 31