Package gov.nist.javax.sip.message

Examples of gov.nist.javax.sip.message.SIPRequest.checkHeaders()


        if (sipStack.getStackLogger().isLoggingEnabled()) {
            sipStack.getStackLogger().logDebug("sendRequest() " + sipRequest);
        }

        try {
            sipRequest.checkHeaders();
        } catch (ParseException ex) {
            sipStack.getStackLogger().logError("missing required header");
            throw new SipException(ex.getMessage());
        }
View Full Code Here


            Via via = lp.getViaHeader();
            request.setHeader(via);
        }
        // Give the request a quick check to see if all headers are assigned.
        try {
            sipRequest.checkHeaders();
        } catch (ParseException ex) {
            throw new TransactionUnavailableException(ex.getMessage(), ex);
        }

        /*
 
View Full Code Here

        if (!sipStack.isAlive())
            throw new TransactionUnavailableException("Stack is stopped");
        SIPServerTransaction transaction = null;
        SIPRequest sipRequest = (SIPRequest) request;
        try {
            sipRequest.checkHeaders();
        } catch (ParseException ex) {
            throw new TransactionUnavailableException(ex.getMessage(), ex);
        }

        if ( request.getMethod().equals(Request.ACK)) {
View Full Code Here

        if (sipStack.isLoggingEnabled()) {
            sipStack.getStackLogger().logDebug("sendRequest() " + sipRequest);
        }

        try {
            sipRequest.checkHeaders();
        } catch (ParseException ex) {
          if (sipStack.isLoggingEnabled())
            sipStack.getStackLogger().logError("missing required header");
            throw new SipException(ex.getMessage());
        }
View Full Code Here

            Via via = lp.getViaHeader();
            request.setHeader(via);
        }
        // Give the request a quick check to see if all headers are assigned.
        try {
            sipRequest.checkHeaders();
        } catch (ParseException ex) {
            throw new TransactionUnavailableException(ex.getMessage(), ex);
        }

        /*
 
View Full Code Here

        if (!sipStack.isAlive())
            throw new TransactionUnavailableException("Stack is stopped");
        SIPServerTransaction transaction = null;
        SIPRequest sipRequest = (SIPRequest) request;
        try {
            sipRequest.checkHeaders();
        } catch (ParseException ex) {
            throw new TransactionUnavailableException(ex.getMessage(), ex);
        }

        if ( request.getMethod().equals(Request.ACK)) {
View Full Code Here

        if (sipStack.isLoggingEnabled(LogWriter.TRACE_DEBUG)) {
            sipStack.getStackLogger().logDebug("sendRequest() " + sipRequest);
        }

        try {
            sipRequest.checkHeaders();
        } catch (ParseException ex) {
          if (sipStack.isLoggingEnabled())
            sipStack.getStackLogger().logError("missing required header");
            throw new SipException(ex.getMessage());
        }
View Full Code Here

    if (logger.isLoggingEnabled(LogWriter.TRACE_DEBUG)) {
      logger.logDebug("sendRequest() " + sipRequest);
    }

    try {
      sipRequest.checkHeaders();
    } catch (ParseException ex) {
      if (logger.isLoggingEnabled())
        logger.logError("missing required header");
      throw new IllegalTransactionStateException(ex.getMessage(), Reason.MissingRequiredHeader);
    }
View Full Code Here

    if (sipStack.getLogWriter().isLoggingEnabled()) {
      sipStack.logWriter.logDebug("sendRequest() " + sipRequest);
    }

    try {
      sipRequest.checkHeaders();
    } catch (ParseException ex) {
      sipStack.logWriter.logError("missing required header");
      throw new SipException(ex.getMessage());
    }
View Full Code Here

      Via via = lp.getViaHeader();
      request.setHeader(via);
    }
    // Give the request a quick check to see if all headers are assigned.
    try {
      sipRequest.checkHeaders();
    } catch (ParseException ex) {
      throw new TransactionUnavailableException(ex.getMessage(), ex);
    }

    /*
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.