1 18 package org.apache.beehive.netui.pageflow; 19 20 import org.apache.beehive.netui.pageflow.adapter.Adapter; 21 22 import javax.servlet.http.HttpServletRequest ; 23 import javax.servlet.http.HttpServletResponse ; 24 import javax.security.auth.login.LoginException ; 25 26 27 48 public interface ServletContainerAdapter 49 extends Adapter 50 { 51 55 public boolean isInProductionMode(); 56 57 80 public SecurityProtocol getSecurityProtocol( String path, HttpServletRequest request ); 81 82 91 boolean doSecurityRedirect( String path, HttpServletRequest request, HttpServletResponse response ); 92 93 94 100 public int getListenPort( HttpServletRequest request ); 101 102 108 public int getSecureListenPort( HttpServletRequest request ); 109 110 120 public void login( String username, String password, HttpServletRequest request, HttpServletResponse response ) 121 throws LoginException ; 122 123 132 public void logout( boolean invalidateSessions, HttpServletRequest request, HttpServletResponse response ); 133 134 140 public String getFullContextPath( HttpServletRequest request ); 141 142 151 public void ensureFailover( String attrName, Object attrVal, HttpServletRequest request ); 152 153 159 public void beginRequest( HttpServletRequest request, HttpServletResponse response ); 160 161 167 public void endRequest( HttpServletRequest request, HttpServletResponse response ); 168 169 176 public Object createControlBeanContext( HttpServletRequest request, HttpServletResponse response ); 177 178 183 public String getPlatformName(); 184 185 188 public PageFlowEventReporter getEventReporter(); 189 } 190 | Popular Tags |