Package gov.nist.javax.sip.header

Examples of gov.nist.javax.sip.header.RetryAfter.encode()


            try {
                RetryAfter retryAfter = new RetryAfter();
                retryAfter.setRetryAfter(100);
                retryAfter.setDuration(10);
                retryAfter.setComment("foo");
                System.out.println(new RetryAfterParser(retryAfter.encode()).parse().toString());
                assertTrue( retryAfter.equals(new RetryAfterParser(retryAfter.encode()).parse()));
            } catch (Exception ex) {
                fail("Could not parse encoded header");
            }
       
View Full Code Here


                RetryAfter retryAfter = new RetryAfter();
                retryAfter.setRetryAfter(100);
                retryAfter.setDuration(10);
                retryAfter.setComment("foo");
                System.out.println(new RetryAfterParser(retryAfter.encode()).parse().toString());
                assertTrue( retryAfter.equals(new RetryAfterParser(retryAfter.encode()).parse()));
            } catch (Exception ex) {
                fail("Could not parse encoded header");
            }
       
    }
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.