Package org.zoolu.sip.header

Examples of org.zoolu.sip.header.Header


      goToNextLine();
      int colon=header_str.indexOf(':');
      if (colon<0) return null;
      String hname=header_str.substring(0,colon).trim();
      String hvalue=header_str.substring(++colon).trim();
      return new Header(hname,hvalue);      
   }
View Full Code Here


      int begin=par.indexOf(':')+1;
      int end=par.indexOfEOH();
      if (begin>end) return null;
      String hvalue=str.substring(begin,end).trim();
      index=end;
      return new Header(hname,hvalue);
   }
View Full Code Here

   public boolean hasReferToHeader()
   {  return hasHeader(SipHeaders.Refer_To);
   }
   /** Gets ReferToHeader */
   public ReferToHeader getReferToHeader()
   {  Header h=getHeader(SipHeaders.Refer_To);
      if (h==null) return null;
      return new ReferToHeader(h);
  
View Full Code Here

   public boolean hasReferredByHeader()
   {  return hasHeader(SipHeaders.Refer_To);
   }
   /** Gets ReferredByHeader */
   public ReferredByHeader getReferredByHeader()
   {  Header h=getHeader(SipHeaders.Referred_By);
      if (h==null) return null;
      return new ReferredByHeader(h);
  
View Full Code Here

   public boolean hasEventHeader()
   {  return hasHeader(SipHeaders.Event);
   }
   /** Gets EventHeader */
   public EventHeader getEventHeader()
   {  Header h=getHeader(SipHeaders.Event);
      if (h==null) return null;
      return new EventHeader(h);
  
View Full Code Here

   public boolean hasAllowEventsHeader()
   {  return hasHeader(SipHeaders.Allow_Events);
   }
   /** Gets AllowEventsHeader */
   public AllowEventsHeader getAllowEventsHeader()
   {  Header h=getHeader(SipHeaders.Allow_Events);
      if (h==null) return null;
      return new AllowEventsHeader(h);
  
View Full Code Here

   public boolean hasSubscriptionStateHeader()
   {  return hasHeader(SipHeaders.Subscription_State);
   }
   /** Gets SubscriptionStateHeader */
   public SubscriptionStateHeader getSubscriptionStateHeader()
   {  Header h=getHeader(SipHeaders.Subscription_State);
      if (h==null) return null;
      return new SubscriptionStateHeader(h);
  
View Full Code Here

      // the original request-uri, but the request-uri has been already replaced
      // and forgotten when processing the message for calculating the branch! ;)
      if (err_code==0 && server_profile.loop_detection)
      {  String loop_tag=pickLoopTag(msg);
         // add temporary Loop-Tag header field
         msg.setHeader(new Header(Loop_Tag,loop_tag));
         // check for loop
         if (!msg.hasRouteHeader())
         {  Vector v=msg.getVias().getHeaders();
            for (int i=0; i<v.size(); i++)
            {  ViaHeader vh=new ViaHeader((Header)v.elementAt(i));
View Full Code Here

TOP

Related Classes of org.zoolu.sip.header.Header

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.