From 0d9f93783c8c1d6fc36e832af1a86004d2f10edc Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 18 Sep 2015 15:20:35 +0200 Subject: [PATCH] =?utf8?q?moved=20interface=20WrapableReceipt=20to=20jshop?= =?utf8?q?-ee-lib=20+=20called=20EJB=20(no=20functionality=20yet)=20Signed?= =?utf8?q?-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/jshop-ee-lib.jar | Bin 6486 -> 6865 bytes .../servlet/receipt/PdfReceiptServlet.java | 10 +++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/jshop-ee-lib.jar b/lib/jshop-ee-lib.jar index 0cb88359105bffadc690370cd27fa03168df7bd9..0301ab7d83c831b0e4ead827bd127b1f4a059983 100644 GIT binary patch delta 585 zcmca+bkUS2z?+$ci-CcIfx)0^B9A7Me$_sQ9+EBAgY(q z0Ysf=bb?R@lbxA_K+IW8`ja-84=+kANKDE}4N6T;%`7OUoCX*jB%8D03%+g0wGkGDK*5o@vypjwI zj0`M5^O+b}1H2iTM3`YAI$2EE5*VbD1BJmsHd)vJ=;O&pfr18AlSG_B99I!f5H&$0 z07N|!2?9}OqG0N-sLbSLqNX5`yP|<0%0Mg^M9mi~15x7Qg&?X6Lj4sl0r83@^3j6v yy+rWjI&m%qP~f5j7|_Wuu%uB~c=ALEd1D-Yg@j{(H!B-RhcFN>0J5Y-Ks*3tnx)tP delta 355 zcmca;dd-L@z?+$ci-CcIfx)|CB9A7MSH(p0=}bWO1qBfKNfSs;mSr>sQ9+EBAgY(q z0Ysf=bb?R@lbxA_K+IW8`jcaMIVblsaYDF`Kx*?{CNCxst;w1Rrl+ufU9cF!^q1E6t}ZvX{>l(48Xh>8&P1W}7c13;9gn9O8BF*67=2t<7VitH3K zg)jp_l(Tp)h}tAx2BNei3PIFd2qhp{0^+qv=A${3Nh(-`m5l)ign-Zj$l?$N@c^h5 BW8MG& diff --git a/src/java/org/mxchange/pizzaapplication/servlet/receipt/PdfReceiptServlet.java b/src/java/org/mxchange/pizzaapplication/servlet/receipt/PdfReceiptServlet.java index 252672b6..944bfd0c 100644 --- a/src/java/org/mxchange/pizzaapplication/servlet/receipt/PdfReceiptServlet.java +++ b/src/java/org/mxchange/pizzaapplication/servlet/receipt/PdfReceiptServlet.java @@ -26,6 +26,7 @@ import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.mxchange.jshopcore.model.receipt.ReceiptBeanRemote; +import org.mxchange.jshopcore.model.receipt.WrapableReceipt; /** * A servlet for a PDF receipt (official) @@ -42,7 +43,7 @@ public class PdfReceiptServlet extends HttpServlet { /** * Remote bean */ - private final ReceiptBeanRemote receipt; + private final ReceiptBeanRemote receiptBean; /** * Public constructor @@ -54,7 +55,7 @@ public class PdfReceiptServlet extends HttpServlet { Context context = new InitialContext(); // Set instance - this.receipt = (ReceiptBeanRemote) context.lookup("ejb/pdf-receipt"); + this.receiptBean = (ReceiptBeanRemote) context.lookup("ejb/pdf-receipt"); //NOI18N } catch (final NamingException e) { // Throw again throw new FaceletException(e); @@ -64,13 +65,16 @@ public class PdfReceiptServlet extends HttpServlet { @Override protected void doGet (final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { // Is the key set? - if (request.getParameter("key") == null) { + if (request.getParameter("key") == null) { //NOI18N // No more processing here super.doGet(request, response); return; } // Get PDF from bean + WrapableReceipt receipt = this.receiptBean.createReceiptFromAccessKey(request.getParameter("key")); //NOI18N + + // TODO Write it's content to response output } @Override -- 2.39.5