/*
- * Copyright (C) 2015 quix0r
+ * Copyright (C) 2015 Roland Haeder
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
package org.mxchange.pizzaapplication.tags.basket;
import javax.servlet.jsp.tagext.BodyTag;
-import org.mxchange.jshop.beans.remote.basket.BasketSessionBeanRemote;
/**
+ * An interface for a (mini) basket tag.
*
- * @author quix0r
+ * @author Roland Haeder
*/
public interface BasketTag extends BodyTag {
-
- /**
- * @return the basket
- */
- public BasketSessionBeanRemote getBasket ();
-
- /**
- * @param basket the basket to set
- */
- public void setBasket (final BasketSessionBeanRemote basket);
}
import javax.servlet.jsp.tagext.BodyTagSupport;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
-import org.mxchange.jshop.beans.remote.basket.BasketSessionBeanRemote;
import org.mxchange.jshop.model.item.AddableBasketItem;
import org.mxchange.jshop.model.product.Product;
import org.mxchange.pizzaapplication.beans.controller.PizzaBean;
*/
private static final long serialVersionUID = 457415727452384L;
- /**
- * Basket instance
- */
- private BasketSessionBeanRemote basket;
-
/**
* Logger instance
*/
// Don't process any body
return SKIP_BODY;
}
-
- /**
- * @return the basket
- */
- @Override
- public BasketSessionBeanRemote getBasket () {
- // Trace message
- //* NOISY-DEBUG: */ this.LOG.trace("basket=" + this.basket + " - EXIT!");
-
- // Return it
- return this.basket;
- }
-
- /**
- * @param basket the basket to set
- */
- @Override
- public void setBasket (final BasketSessionBeanRemote basket) {
- // Trace message
- //* NOISY-DEBUG: */ this.LOG.trace("basked=" + basket + " - CALLED!");
-
- // Set it here
- this.basket = basket;
- }
}