public int addServerRedirectToProfile ( String region , String srcUrl , String destUrl , String hostHeader , int profileId , int clientId ) throws Exception { int serverId = - 1 ; try { Client client = ClientService . getInstance ( ) . getClient ( clientId ) ; serverId = addServerRedirect ( region , srcUrl , destUrl , hostHeader , profileId , client . getActiveServerGroup ( ) ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return serverId ; }
Add server redirect to a profile using current active ServerGroup