Package org.cipango.sip.SipHeaders

Examples of org.cipango.sip.SipHeaders.HeaderInfo


   * @see SipServletMessage#getParameterableHeaders(String)
   */
  public ListIterator<? extends Parameterable> getParameterableHeaders(String name) throws ServletParseException
  {
    Buffer buffer = SipHeaders.CACHE.lookup(name);
    HeaderInfo hi = SipHeaders.getType(buffer);
   
    if (hi.getType() != HeaderInfo.PARAMETERABLE && hi.getType() != HeaderInfo.ADDRESS && hi.getOrdinal() != -1)
      throw new ServletParseException("Header: " + name + " is not of parametrable type");
   
    ListIterator<Parameterable> it = getFields().getParameterableValues(buffer);
   
    if (isSystemHeader(hi) || isCommitted())
View Full Code Here


  {
    if (isCommitted())
      throw new IllegalStateException("Message is committed");
   
    Buffer buffer = SipHeaders.CACHE.lookup(name);
    HeaderInfo hi = SipHeaders.getType(buffer);
   
    if (isSystemHeader(hi))
      throw new IllegalArgumentException(name + " is a system header");
   
    if (hi.getType() != HeaderInfo.PARAMETERABLE && hi.getOrdinal() != -1)
      throw new IllegalArgumentException("Header " + name + " is not of parameterable type");
   
    getFields().setParameterable(buffer, (ParameterableImpl) value);
  }
View Full Code Here

TOP

Related Classes of org.cipango.sip.SipHeaders.HeaderInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.