org.cafesip.jiplet.sip
Class RequestValidation

java.lang.Object
  extended by org.cafesip.jiplet.sip.RequestValidation

public class RequestValidation
extends java.lang.Object

RFC 3261 16.3 Request Validation: Before an element can proxy a request, it MUST verify the message's validity. A valid message must pass the following checks: 1. Reasonable Syntax: Here, it is done by the stack, so this step is passed! 2. URI scheme: we just support the "sip", "sips", "tel" schemes, for simplicity!!! 3. Max-Forwards 4. (Optional) Loop Detection 5. Proxy-Require: We don't support any option tags! 6. Proxy-Authorization


Constructor Summary
protected RequestValidation(Jiplet proxy, boolean presenceServer)
          Creates a new instance of RequestValidation
 
Method Summary
protected  boolean validateRequest(javax.sip.SipProvider sipProvider, javax.sip.message.Request request, javax.sip.ServerTransaction serverTransaction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestValidation

protected RequestValidation(Jiplet proxy,
                            boolean presenceServer)
Creates a new instance of RequestValidation

Method Detail

validateRequest

protected boolean validateRequest(javax.sip.SipProvider sipProvider,
                                  javax.sip.message.Request request,
                                  javax.sip.ServerTransaction serverTransaction)


http://www.cafesip.org