@Override public void handleRequest(RequestContext rc) throws CLIException {
  super.handleRequest(rc);
  ldapLogin();
  getOptions(rc);
  validateOptions();
  normalizeOptions();
  String spec=FederationManager.getIDFFSubCommandSpecification(rc);
  String[] params={entityID,metadata,extendedData,idpAlias,spAlias,attraAlias,attrqAlias,authnaAlias,pdpAlias,pepAlias,affiAlias,spec};
  writeLog(LogWriter.LOG_ACCESS,Level.INFO,"ATTEMPT_CREATE_METADATA_TEMPL",params);
  try {
    if (spec.equals(FederationManager.DEFAULT_SPECIFICATION)) {
      handleSAML2Request(rc);
      writeLog(LogWriter.LOG_ACCESS,Level.INFO,"SUCCEEDED_CREATE_METADATA_TEMPL",params);
    }
 else     if (spec.equals(FedCLIConstants.IDFF_SPECIFICATION)) {
      handleIDFFRequest(rc);
      writeLog(LogWriter.LOG_ACCESS,Level.INFO,"SUCCEEDED_CREATE_METADATA_TEMPL",params);
    }
 else     if (spec.equals(FedCLIConstants.WSFED_SPECIFICATION)) {
      handleWSFedRequest(rc);
      writeLog(LogWriter.LOG_ACCESS,Level.INFO,"SUCCEEDED_CREATE_METADATA_TEMPL",params);
    }
 else {
      throw new CLIException(getResourceString("unsupported-specification"),ExitCodes.REQUEST_CANNOT_BE_PROCESSED);
    }
  }
 catch (  CLIException e) {
    String[] args={entityID,spec,e.getMessage()};
    writeLog(LogWriter.LOG_ERROR,Level.INFO,"FAILED_CREATE_METADATA_TEMPL",args);
    throw e;
  }
}

@ Override public void handleRequest ( RequestContext rc ) throws CLIException { super . handleRequest ( rc ) ; ldapLogin ( ) ; getOptions ( rc ) ; validateOptions ( ) ; normalizeOptions ( ) ; String spec = FederationManager . getIDFFSubCommandSpecification ( rc ) ; String [ ] params = { entityID , metadata , extendedData , idpAlias , spAlias , attraAlias , attrqAlias , authnaAlias , pdpAlias , pepAlias , affiAlias , spec } ; writeLog ( LogWriter . LOG_ACCESS , Level . INFO , "ATTEMPT_CREATE_METADATA_TEMPL" , params ) ; try { if ( spec . equals ( FederationManager . DEFAULT_SPECIFICATION ) ) { handleSAML2Request ( rc ) ; writeLog ( LogWriter . LOG_ACCESS , Level . INFO , "SUCCEEDED_CREATE_METADATA_TEMPL" , params ) ; } else if ( spec . equals ( FedCLIConstants . IDFF_SPECIFICATION ) ) { handleIDFFRequest ( rc ) ; writeLog ( LogWriter . LOG_ACCESS , Level . INFO , "SUCCEEDED_CREATE_METADATA_TEMPL" , params ) ; } else if ( spec . equals ( FedCLIConstants . WSFED_SPECIFICATION ) ) { handleWSFedRequest ( rc ) ; writeLog ( LogWriter . LOG_ACCESS , Level . INFO , "SUCCEEDED_CREATE_METADATA_TEMPL" , params ) ; } else { throw new CLIException ( getResourceString ( "unsupported-specification" ) , ExitCodes . REQUEST_CANNOT_BE_PROCESSED ) ; } } catch ( CLIException e ) { String [ ] args = { entityID , spec , e . getMessage ( ) } ; writeLog ( LogWriter . LOG_ERROR , Level . INFO , "FAILED_CREATE_METADATA_TEMPL" , args ) ; throw e ; } }
creates meta data template .
