public static OAuth20ResponseModeTypes getResponseModeType ( final J2EContext context ) { val responseType = context . getRequestParameter ( OAuth20Constants . RESPONSE_MODE ) ; val type = Arrays . stream ( OAuth20ResponseModeTypes . values ( ) ) . filter ( t -> t . getType ( ) . equalsIgnoreCase ( responseType ) ) . findFirst ( ) . orElse ( OAuth20ResponseModeTypes . NONE ) ; LOGGER . debug ( "OAuth response type is [{}]" , type ) ; return type ; }
Gets response mode type .