Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package test.unit.gov.nist.javax.sip.stack.tls;
 import javax.sip.*;
 
 import java.util.*;
 
 public class MyRouter implements Router {
     protected SipStack myStack;
    protected HopImpl defaultRoute;
    public MyRouter(SipStack sipStackString nextHop) {
        this. = sipStack;
        this. = new HopImpl(nextHop);
    }

    
Always send requests to the default route location.
    public ListIterator getNextHops(Request sipRequest) {
        LinkedList ll = null;
        if ( != null) {
            if (ll == null)
                ll = new LinkedList();
            ll.add();
            return ll.listIterator();
        } else
            return null;
    }
    public Hop getOutboundProxy() {
        return this.;
    }
    public Hop getNextHop(Request requestthrows SipException {
        return this.;
    }
New to GrepCode? Check out our FAQ X