protected Response . ResponseType getWebApplicationServiceResponseType ( final WebApplicationService finalService ) { val request = HttpRequestUtils . getHttpServletRequestFromRequestAttributes ( ) ; val methodRequest = request != null ? request . getParameter ( CasProtocolConstants . PARAMETER_METHOD ) : null ; final Function < String , String > func = FunctionUtils . doIf ( StringUtils :: isBlank , t -> { val registeredService = this . servicesManager . findServiceBy ( finalService ) ; if ( registeredService != null ) { return registeredService . getResponseType ( ) ; } return null ; } , f -> methodRequest ) ; val method = func . apply ( methodRequest ) ; if ( StringUtils . isBlank ( method ) ) { return Response . ResponseType . REDIRECT ; } return Response . ResponseType . valueOf ( method . toUpperCase ( ) ) ; }
Determine response type response .