@Override public MobicentsSipServletRequest createSipServletRequest(Request request, MobicentsSipSession sipSession, Transaction transaction, Dialog dialog, boolean createDialog) { return new Servlet3SipServletRequestImpl(request, sipFactoryImpl, sipSession, transaction, dialog, createDialog); }
public long getContentLengthLong() { return (long) getContentLength(); } }
public Map<String, String[]> getParameterMap() { // JSR 289 Section 5.6.1 Parameters : // For initial requests where a preloaded Route header specified the application to be invoked, the parameters are those of the SIP or SIPS URI in that Route header. // For initial requests where the application is invoked the parameters are those present on the request URI, // if this is a SIP or a SIPS URI. For other URI schemes, the parameter set is undefined. // For subsequent requests in a dialog, the parameters presented to the application are those that the application itself // set on the Record-Route header for the initial request or response (see 10.4 Record-Route Parameters). // These will typically be the URI parameters of the top Route header field but if the upstream SIP element is a // "strict router" they may be returned in the request URI (see RFC 3261). // It is the containers responsibility to recognize whether the upstream element is a strict router and determine the right parameter set accordingly. HashMap<String, String[]> retval = new HashMap<String, String[]>(); if(this.getPoppedRoute() != null) { Iterator<String> parameterNamesIt = this.getPoppedRoute().getURI().getParameterNames(); while (parameterNamesIt.hasNext()) { String parameterName = parameterNamesIt.next(); String [] paramsArray = {this.getPoppedRoute().getURI().getParameter(parameterName)}; //Get the parameter map value to String[] retval.put(parameterName, paramsArray); } } else { Iterator<String> parameterNamesIt = this.getRequestURI().getParameterNames(); while (parameterNamesIt.hasNext()) { String parameterName = parameterNamesIt.next(); String [] paramsArray = {this.getPoppedRoute().getURI().getParameter(parameterName)}; //Get the parameter map value to String[] retval.put(parameterName, paramsArray); } } return retval; }
if (this.getPoppedRoute() != null) { Iterator<String> parameterNamesIt = this.getPoppedRoute().getURI().getParameterNames(); while (parameterNamesIt.hasNext()) { String parameterName = parameterNamesIt.next(); String[] paramsArray = { this.getPoppedRoute().getURI().getParameter(parameterName) }; // Get the Iterator<String> parameterNamesIt = this.getRequestURI().getParameterNames(); while (parameterNamesIt.hasNext()) { String parameterName = parameterNamesIt.next(); String[] paramsArray = { this.getPoppedRoute().getURI().getParameter(parameterName) }; // Get the
if (this.getPoppedRoute() != null) { Iterator<String> parameterNamesIt = this.getPoppedRoute().getURI().getParameterNames(); while (parameterNamesIt.hasNext()) { String parameterName = parameterNamesIt.next(); String[] paramsArray = { this.getPoppedRoute().getURI().getParameter(parameterName) }; // Get the Iterator<String> parameterNamesIt = this.getRequestURI().getParameterNames(); while (parameterNamesIt.hasNext()) { String parameterName = parameterNamesIt.next(); String[] paramsArray = { this.getPoppedRoute().getURI().getParameter(parameterName) }; // Get the
@Override public MobicentsSipServletRequest createSipServletRequest(Request request, MobicentsSipSession sipSession, Transaction transaction, Dialog dialog, boolean createDialog) { return new Servlet3SipServletRequestImpl(request, sipFactoryImpl, sipSession, transaction, dialog, createDialog); }
public long getContentLengthLong() { return (long) getContentLength(); } }
@Override public MobicentsSipServletRequest createSipServletRequest(Request request, MobicentsSipSession sipSession, Transaction transaction, Dialog dialog, boolean createDialog) { return new Servlet3SipServletRequestImpl(request, sipFactoryImpl, sipSession, transaction, dialog, createDialog); }