public static DispatchRule replicate ( DispatchRule dispatchRule ) { DispatchRule dr = new DispatchRule ( ) ; dr . setName ( dispatchRule . getName ( ) , dispatchRule . getNameTokens ( ) ) ; dr . setContentType ( dispatchRule . getContentType ( ) ) ; dr . setEncoding ( dispatchRule . getEncoding ( ) ) ; dr . setDefaultResponse ( dispatchRule . getDefaultResponse ( ) ) ; dr . setActionList ( dispatchRule . getActionList ( ) ) ; return dr ; }
Returns a new derived instance of DispatchRule .