1 48 49 50 package com.caucho.portal.generic.context; 51 52 import com.caucho.portal.generic.Action; 53 import com.caucho.portal.generic.Portal; 54 import com.caucho.portal.generic.Window; 55 56 import javax.portlet.ActionRequest; 57 import javax.portlet.ActionResponse; 58 import javax.portlet.Portlet; 59 import javax.portlet.PortletException; 60 import java.io.IOException ; 61 62 63 class ActionImpl 64 implements Action 65 { 66 protected ConnectionContext _context; 67 68 public ActionImpl(ConnectionContext context) 69 { 70 _context = context; 71 } 72 73 public boolean isTarget() 74 { 75 return _context.isTarget(); 76 } 77 78 public void processAction(Portlet portlet) 79 throws PortletException, IOException 80 { 81 _context.processAction(portlet); 82 } 83 84 public Portal getPortal() 85 { 86 return _context.getPortal(); 87 } 88 89 public Window getWindow() 90 { 91 return _context.getWindow(); 92 } 93 94 public String getNamespace() 95 { 96 return _context.getNamespace(); 97 } 98 99 public ActionRequest getActionRequest() 100 { 101 return _context.getActionRequest(); 102 } 103 104 public ActionResponse getActionResponse() 105 { 106 return _context.getActionResponse(); 107 } 108 109 public void finish() 110 throws IOException , PortletException 111 { 112 _context.finishAction(); 113 } 114 } 115 | Popular Tags |