Package org.jvnet.glassfish.comms.sipagent.model

Examples of org.jvnet.glassfish.comms.sipagent.model.SipMessage


            ", aPort: " + aPort +
            ", aBuffer: " + aBuffer);
       
        ByteBuffer bb = ByteBuffer.wrap(aBuffer.getBytes());
       
        SipMessage result = null;
        try
        {
            MySipParser p = MySipParser.getInstance();
            // TODO apparently passing in a bunch of nulls works fine!
            result = p.parseMessage(null, bb, null, null, null);
View Full Code Here


    private SipMessage doParse(String aText) throws ParserException {
        theirLogger.finer("Parsing text: " + aText);
        ByteBuffer bb = ByteBuffer.wrap(aText.getBytes());
        MySipParser p = MySipParser.getInstance();
        // TODO apparently passing in a bunch of nulls works fine!
        SipMessage result = p.parseMessage(null, bb, null, null, null);
       
        theirLogger.finer("Created message: " + result);
        // fix for parser 'bug' it either returns null or throws an exception...
        if (result == null){
            throw new ParserException(
View Full Code Here

     *  create a response.
     */
    public void sendMessage(String aText) {
        theirLogger.finest("----- sendMessage ----->");
        // Try to create a request based on the text the GUI passed in.
        SipMessage msg = null;
        try {
            msg = itsController.createRequest(aText);
        }
        catch (BackendException e1){
            // TODO: clean up yucky use of exceptions for flow-of-control
View Full Code Here

TOP

Related Classes of org.jvnet.glassfish.comms.sipagent.model.SipMessage

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.