builder.setHeader( "If-Modified-Since", "01 Jan 1970 00:00:00 GMT" );
builder.sendRequest( null, new RequestCallback() {
public void onError( Request request, Throwable exception ) {
FilePropertiesDialog dialog =
new FilePropertiesDialog( item, new PentahoTabPanel(), null, getActiveTab(), false );
dialog.showTab( getActiveTab() );
dialog.center();
event.setMessage( exception.getMessage() );
EventBusUtil.EVENT_BUS.fireEvent( event );
}
public void onResponseReceived( Request request, Response response ) {
FilePropertiesDialog dialog =
new FilePropertiesDialog( item, new PentahoTabPanel(), null, getActiveTab(), Boolean
.parseBoolean( response.getText() ) );
dialog.showTab( getActiveTab() );
dialog.center();
event.setMessage( "Success" );
EventBusUtil.EVENT_BUS.fireEvent( event );
}
} );
} catch ( RequestException e ) {
FilePropertiesDialog dialog =
new FilePropertiesDialog( item, new PentahoTabPanel(), null, getActiveTab(), false );
dialog.showTab( getActiveTab() );
dialog.center();
event.setMessage( e.getMessage() );
EventBusUtil.EVENT_BUS.fireEvent( event );