protected Integer getInteger ( Exchange exchange , Message message , String name ) { Object value = getObject ( exchange , message , name ) ; if ( value instanceof Integer ) { return ( Integer ) value ; } else if ( value instanceof Number ) { return Integer . valueOf ( ( ( Number ) value ) . intValue ( ) ) ; } else if ( value instanceof String ) { return Integer . valueOf ( ( ( String ) value ) . trim ( ) ) ; } return null ; }
Gets an Integer context property .