public void saveParam ( ScannerParam param ) { // Set Injectable Targets int targets = 0 ; if ( this . getChkInjectableQueryString ( ) . isSelected ( ) ) { targets |= ScannerParam . TARGET_QUERYSTRING ; } param . setAddQueryParam ( getChkAddQueryParam ( ) . isSelected ( ) ) ; if ( this . getChkInjectableUrlPath ( ) . isSelected ( ) ) { targets |= ScannerParam . TARGET_URLPATH ; } if ( this . getChkInjectablePostData ( ) . isSelected ( ) ) { targets |= ScannerParam . TARGET_POSTDATA ; } if ( this . getChkInjectableHeaders ( ) . isSelected ( ) ) { targets |= ScannerParam . TARGET_HTTPHEADERS ; } param . setScanHeadersAllRequests ( getChkInjectableHeadersAllRequests ( ) . isSelected ( ) ) ; if ( this . getChkInjectableCookie ( ) . isSelected ( ) ) { targets |= ScannerParam . TARGET_COOKIE ; } param . setTargetParamsInjectable ( targets ) ; // Set Enabled RPC schemas int enabledRpc = 0 ; if ( this . getChkRPCMultipart ( ) . isSelected ( ) ) { enabledRpc |= ScannerParam . RPC_MULTIPART ; } if ( this . getChkRPCXML ( ) . isSelected ( ) ) { enabledRpc |= ScannerParam . RPC_XML ; } if ( this . getChkRPCJSON ( ) . isSelected ( ) ) { enabledRpc |= ScannerParam . RPC_JSON ; } if ( this . getChkRPCGWT ( ) . isSelected ( ) ) { enabledRpc |= ScannerParam . RPC_GWT ; } if ( this . getChkRPCoData ( ) . isSelected ( ) ) { enabledRpc |= ScannerParam . RPC_ODATA ; } if ( this . getChkRPCDWR ( ) . isSelected ( ) ) { enabledRpc |= ScannerParam . RPC_DWR ; } if ( this . getChkRPCCustom ( ) . isSelected ( ) ) { enabledRpc |= ScannerParam . RPC_CUSTOM ; } param . setTargetParamsEnabledRPC ( enabledRpc ) ; param . setExcludedParamList ( getExcludedParameterModel ( ) . getElements ( ) ) ; }
Saves the options shown in the panel to the given options object .