All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lastbamboo.common.sip.stack.message.Invite Maven / Gradle / Ivy

The newest version!
package org.lastbamboo.common.sip.stack.message;

import java.net.URI;
import java.util.Map;

import org.lastbamboo.common.sip.stack.codec.SipMethod;
import org.lastbamboo.common.sip.stack.message.header.SipHeader;
import org.littleshoot.mina.common.ByteBuffer;

/**
 * A SIP INVITE message.  
 */
public class Invite extends AbstractSipMessage {
    
    /**
     * Creates a new INVITE request with the specified first line of the 
     * message, the specified headers, and the specified message body.
     * 
     * @param requestUri The request URI.
     * @param headers The message headers.
     * @param body The message body.
     */
    public Invite(final URI requestUri, final Map headers,
            final ByteBuffer body) {
        super(SipMethod.INVITE, requestUri, headers, body);
    }

    /**
     * Creates a new INVITE request.
     * 
     * @param startLine The first line of the request.
     * @param headers The headers.
     * @param body The body.
     */
    public Invite(final String startLine, final Map headers,
            final ByteBuffer body) {
        super(startLine, SipMethod.INVITE, headers, body);
    }

    public void accept(final SipMessageVisitor visitor) {
        visitor.visitInvite(this);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy