protected static AbstractWebApplicationService newWebApplicationService ( final HttpServletRequest request , final String serviceToUse ) { val artifactId = request != null ? request . getParameter ( CasProtocolConstants . PARAMETER_TICKET ) : null ; val id = cleanupUrl ( serviceToUse ) ; val newService = new SimpleWebApplicationServiceImpl ( id , serviceToUse , artifactId ) ; determineWebApplicationFormat ( request , newService ) ; val source = getSourceParameter ( request , CasProtocolConstants . PARAMETER_TARGET_SERVICE , CasProtocolConstants . PARAMETER_SERVICE ) ; newService . setSource ( source ) ; return newService ; }
Build new web application service simple web application service .