/** * * @param req * @throws IOException */ private void notImplemented(SipServletRequest req) throws IOException { SipServletResponse resp = req.createResponse(501, "Request not implemented"); resp.send(); } }
/** * Invoked by the server (via the service method) to handle incoming PRACK requests. * The default implementation is empty and must be overridden by subclasses to do something useful. */ protected void doPrack(javax.servlet.sip.SipServletRequest req) throws javax.servlet.ServletException, java.io.IOException{ if (req.isInitial()) notHandled(req); }
/** * Invoked by the server (via the service method) to handle incoming MESSAGE requests. * The default implementation is empty and must be overridden by subclasses to do something useful. */ protected void doMessage(javax.servlet.sip.SipServletRequest req) throws javax.servlet.ServletException, java.io.IOException{ if (req.isInitial()) notImplemented(req); }
public Object extract(Object input) { if (inputType == REQUEST) { return ((SipServletRequest) input).getRequestURI(); } else { return ((Address) input).getURI(); } } }
public Object extract(Object input) { if (inputType == REQUEST) { return ((SipServletRequest) input).getRequestURI(); } else { return ((Address) input).getURI(); } } }
/** * Invoked by the server (via the service method) to handle incoming INFO requests. * The default implementation is empty and must be overridden by subclasses to do something useful. */ protected void doInfo(javax.servlet.sip.SipServletRequest req) throws javax.servlet.ServletException, java.io.IOException{ if (req.isInitial()) notHandled(req); }
/** * Invoked by the server (via the service method) to handle incoming NOTIFY requests. * The default implementation is empty and must be overridden by subclasses to do something useful. */ protected void doNotify(javax.servlet.sip.SipServletRequest req) throws javax.servlet.ServletException, java.io.IOException{ if (req.isInitial()) notImplemented(req); }
public Object extract(Object input) { if (inputType == REQUEST) { return ((SipServletRequest) input).getRequestURI(); } else { return ((Address) input).getURI(); } } }
/** * Invoked by the server (via the service method) to handle incoming OPTIONS requests. * The default implementation is empty and must be overridden by subclasses to do something useful. */ protected void doOptions(javax.servlet.sip.SipServletRequest req) throws javax.servlet.ServletException, java.io.IOException{ if (req.isInitial()) notHandled(req); }
/** * Invoked by the server (via the service method) to handle incoming PUBLISH requests. * The default implementation is empty and must be overridden by subclasses to do something useful. */ protected void doPublish(javax.servlet.sip.SipServletRequest req) throws javax.servlet.ServletException, java.io.IOException{ if (req.isInitial()) notImplemented(req); }
/** * Invoked by the server (via the service method) to handle incoming BYE requests. * The default implementation is empty and must be overridden by subclasses to do something useful. */ protected void doBye(javax.servlet.sip.SipServletRequest req) throws javax.servlet.ServletException, java.io.IOException{ if (req.isInitial()) notHandled(req); }
/** * Invoked by the server (via the service method) to handle incoming SUBSCRIBE requests. * The default implementation is empty and must be overridden by subclasses to do something useful. */ protected void doSubscribe(javax.servlet.sip.SipServletRequest req) throws javax.servlet.ServletException, java.io.IOException{ if (req.isInitial()) notImplemented(req); }
/** * Invoked by the server (via the service method) to handle incoming REFER requests. * The default implementation is empty and must be overridden by subclasses to do something useful. */ protected void doRefer(javax.servlet.sip.SipServletRequest req) throws javax.servlet.ServletException, java.io.IOException{ if (req.isInitial()) notHandled(req); }