public static boolean isWReplyURLValid(HttpServletRequest request,String relayState){
  String metaAlias=WSFederationMetaUtils.getMetaAliasByUri(request.getRequestURI());
  try {
    WSFederationMetaManager metaManager=new WSFederationMetaManager();
    return isWReplyURLValid(metaAlias,relayState,metaManager.getRoleByMetaAlias(metaAlias));
  }
 catch (  WSFederationMetaException e) {
    debug.warning("Can't get metaManager.",e);
    return false;
  }
}

public static boolean isWReplyURLValid ( HttpServletRequest request , String relayState ) { String metaAlias = WSFederationMetaUtils . getMetaAliasByUri ( request . getRequestURI ( ) ) ; try { WSFederationMetaManager metaManager = new WSFederationMetaManager ( ) ; return isWReplyURLValid ( metaAlias , relayState , metaManager . getRoleByMetaAlias ( metaAlias ) ) ; } catch ( WSFederationMetaException e ) { debug . warning ( "Can't get metaManager." , e ) ; return false ; } }
convenience method to validate a wsfederation wreply url , often called from a jsp .
