flexoffer-tutorial/src/main/java/org/arrowhead/wp5/flexoffer/tutorial/MyFlexibleResource.java
@Override
    public void onFlexOfferCreate(FlexOffer fo) {

        try {
            if (this.xfosc != null) {
                this.xfosc.createFlexOffer(id, fo);
            }
        } catch (FlexOfferException e) {
            // TODO Handle error
            logger.error("Error creating flexoffer.", e);
        }

    }
/* Callback for the FlexOfferAgent when it creates a flexoffer
     * We send the flexoffer to the aggregator throught the XMPP interface
     * */
Callback for the FlexOfferAgent when it creates a flexoffer
We send the flexoffer to the aggregator throught the XMPP interface
Callback for the FlexOfferAgent when it creates a flexoffer We send the flexoffer to the aggregator throught the XMPP interface
@Override
    public void onFlexOfferCreate(FlexOffer fo) {
        try {
            if (this.xfosc != null) {
                this.xfosc.createFlexOffer(id, fo);
            }
        } catch (FlexOfferException e) {
            logger.error("Error creating flexoffer.", e);
        }
    }
@ Override public void onFlexOfferCreate ( FlexOffer fo ) { try { if ( this . xfosc != null ) { this . xfosc . createFlexOffer ( id , fo ) ; } } catch ( FlexOfferException e ) { logger . error ( "Error creating flexoffer." , e ) ; } }
Callback for the FlexOfferAgent when it creates a flexoffer
 We send the flexoffer to the aggregator throught the XMPP interface
Callback for the FlexOfferAgent when it creates a flexoffer We send the flexoffer to the aggregator throught the XMPP interface
// TODO Handle error