Package gov.nist.javax.sip.header

Examples of gov.nist.javax.sip.header.StatusLine


      return false;
    } else if (matchObj == this)
      return true;
    SIPResponse that = (SIPResponse) matchObj;
   
    StatusLine rline = that.statusLine;
    if (this.statusLine == null && rline != null)
      return false;
    else if (this.statusLine == rline)
      return super.match(matchObj);
    else {
View Full Code Here


    } catch (Exception ex) {
       ex.printStackTrace();
       System.exit(0);
    }

    StatusLine statusLine = new StatusLine();
    // matches on all 2XX,1xx and 4xx responses.
    statusLine.setMatcher(new Matcher("SIP/2.0 [1,2,4][0-9][0-9]"));
    SIPResponse responseTemplate = new SIPResponse();
    responseTemplate.setStatusLine(statusLine);
    try {
      
        SIPResponse sipResponse  = (SIPResponse) ((MessageFactoryImpl) messageFactory).createResponse(message2);
View Full Code Here

    // defined code but extensions may add others (in theory up to 999,
    // but in practice up to 699 since the 6xx range is defined as 'final error')
    if (statusCode < 100 || statusCode > 699)
      throw new ParseException("bad status code", 0);
    if (this.statusLine == null)
      this.statusLine = new StatusLine();
    this.statusLine.setStatusCode(statusCode);
  }
View Full Code Here

   */
  public void setReasonPhrase(String reasonPhrase) {
    if (reasonPhrase == null)
      throw new IllegalArgumentException("Bad reason phrase");
    if (this.statusLine == null)
      this.statusLine = new StatusLine();
    this.statusLine.setReasonPhrase(reasonPhrase);
  }
View Full Code Here

      return false;
    } else if (matchObj == this)
      return true;
    SIPResponse that = (SIPResponse) matchObj;
   
    StatusLine rline = that.statusLine;
    if (this.statusLine == null && rline != null)
      return false;
    else if (this.statusLine == rline)
      return super.match(matchObj);
    else {
View Full Code Here

      // defined code but extensions may add others (in theory up to 999,
      // but in practice up to 699 since the 6xx range is defined as 'final error')
        if (statusCode < 100 || statusCode > 699)
            throw new ParseException("bad status code", 0);
        if (this.statusLine == null)
            this.statusLine = new StatusLine();
        this.statusLine.setStatusCode(statusCode);
    }
View Full Code Here

     */
    public void setReasonPhrase(String reasonPhrase) {
        if (reasonPhrase == null)
            throw new IllegalArgumentException("Bad reason phrase");
        if (this.statusLine == null)
            this.statusLine = new StatusLine();
        this.statusLine.setReasonPhrase(reasonPhrase);
    }
View Full Code Here

            return false;
        } else if (matchObj == this)
            return true;
        SIPResponse that = (SIPResponse) matchObj;

        StatusLine rline = that.statusLine;
        if (this.statusLine == null && rline != null)
            return false;
        else if (this.statusLine == rline)
            return super.match(matchObj);
        else {
View Full Code Here

   */
  public void setStatusCode(int statusCode) throws ParseException {
    if (statusCode < 100 || statusCode > 800)
      throw new ParseException("bad status code", 0);
    if (this.statusLine == null)
      this.statusLine = new StatusLine();
    this.statusLine.setStatusCode(statusCode);
  }
View Full Code Here

   */
  public void setReasonPhrase(String reasonPhrase) {
    if (reasonPhrase == null)
      throw new IllegalArgumentException("Bad reason phrase");
    if (this.statusLine == null)
      this.statusLine = new StatusLine();
    this.statusLine.setReasonPhrase(reasonPhrase);
  }
View Full Code Here

TOP

Related Classes of gov.nist.javax.sip.header.StatusLine

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.