public void sendRequest(SloRequestSettings requestSettings,HttpServletResponse response) throws IOException {
  Validate.notNull(requestSettings,"requestSettings");
  Validate.notNull(response,"response");
  Validate.notNull(getMessageStore(),"MessageStore");
  Validate.notNull(getMetadataSettings(),"MetadataSettings");
  String redirectUrl=getRequestUrl(requestSettings);
  if (redirectUrl != null) {
    response.sendRedirect(redirectUrl);
  }
 else {
    if (SamlUtils.isIdpSupportSLO(getMetadataSettings(),requestSettings)) {
      logger.error("Failed to send out the SLO request!");
    }
 else {
      logger.warn(String.format("SLO end point does not exist for IDP: %s, SLO request is not sent.",requestSettings.getIDPAlias()));
    }
  }
}

public void sendRequest ( SloRequestSettings requestSettings , HttpServletResponse response ) throws IOException { Validate . notNull ( requestSettings , "requestSettings" ) ; Validate . notNull ( response , "response" ) ; Validate . notNull ( getMessageStore ( ) , "MessageStore" ) ; Validate . notNull ( getMetadataSettings ( ) , "MetadataSettings" ) ; String redirectUrl = getRequestUrl ( requestSettings ) ; if ( redirectUrl != null ) { response . sendRedirect ( redirectUrl ) ; } else { if ( SamlUtils . isIdpSupportSLO ( getMetadataSettings ( ) , requestSettings ) ) { logger . error ( "Failed to send out the SLO request!" ) ; } else { logger . warn ( String . format ( "SLO end point does not exist for IDP: %s, SLO request is not sent." , requestSettings . getIDPAlias ( ) ) ) ; } } }
entry point for sending slo request to idp . this function results a http redirect with logout parameters attached to the url used in the redirect .
