protected static void setupExternalContext() { if (container.getExternalContext() == null) { if (externalContext != null) { container.setExternalContext(externalContext); } } else if (container.getExternalContext().getApplication() == null && externalContext != null) { container.getExternalContext().setApplication(externalContext.getApplication()); } if (container.getExternalContextComponentDefRegister() == null && externalContextComponentDefRegister != null) { container.setExternalContextComponentDefRegister(externalContextComponentDefRegister); } }
/** * @see org.lastaflute.di.core.ComponentDef#getComponent() */ public Object getComponent() { return getContainer().getRoot().getExternalContext().getRequestHeaderValuesMap(); } }
public Object getComponent() { return getContainer().getRoot().getExternalContext().getInitParameterMap(); } }
/** * @see org.lastaflute.di.core.ComponentDef#getComponent() */ public Object getComponent() { return getContainer().getRoot().getExternalContext().getApplication(); } }
/** * @see org.lastaflute.di.core.ComponentDef#getComponent() */ public Object getComponent() { return getContainer().getRoot().getExternalContext().getSessionMap(); } }
/** * @see org.lastaflute.di.core.ComponentDef#getComponent() */ public Object getComponent() { return getContainer().getRoot().getExternalContext().getResponse(); } }
/** * @see org.lastaflute.di.core.ComponentDef#getComponent() */ public Object getComponent() { return getContainer().getRoot().getExternalContext().getRequest(); } }
/** * @see org.lastaflute.di.core.ComponentDef#getComponent() */ public Object getComponent() { return getContainer().getRoot().getExternalContext().getRequestHeaderMap(); } }
@Override public Object getComponent() { return getContainer().getRoot().getExternalContext().getRequestMap(); } }
@Override public Object getComponent() { return getContainer().getRoot().getExternalContext().getSession(); } }
@Override public Object getComponent() { return getContainer().getRoot().getExternalContext().getSession(); } }
/** * @see org.lastaflute.di.core.ComponentDef#getComponent() */ public Object getComponent() { return getContainer().getRoot().getExternalContext().getApplication(); } }
/** * @see org.lastaflute.di.core.ComponentDef#getComponent() */ public Object getComponent() { return getContainer().getRoot().getExternalContext().getResponse(); } }
/** * @see org.lastaflute.di.core.ComponentDef#getComponent() */ public Object getComponent() { return getContainer().getRoot().getExternalContext().getRequest(); } }
/** * @see org.lastaflute.di.core.ComponentDef#getComponent() */ public Object getComponent() { return getContainer().getRoot().getExternalContext().getRequestParameterMap(); } }
/** * @see org.lastaflute.di.core.ComponentDef#getComponent() */ public Object getComponent() { return getContainer().getRoot().getExternalContext().getApplicationMap(); } }
/** * @see org.lastaflute.di.core.ComponentDef#getComponent() */ public Object getComponent() { return getContainer().getRoot().getExternalContext().getRequest(); } }
public Object getComponent() { return getContainer().getRoot().getExternalContext().getApplication(); } }
protected void xclearRequestMockContext() { final LaContainer container = SingletonLaContainerFactory.getContainer(); final ExternalContext externalContext = container.getExternalContext(); if (externalContext != null) { // just in case externalContext.setRequest(null); externalContext.setResponse(null); } xreleaseMockRequestInstance(); }
protected void xregisterRequestMockContext(MockletServletConfig servletConfig) { // like S2ContainerFilter final LaContainer container = SingletonLaContainerFactory.getContainer(); final ExternalContext externalContext = container.getExternalContext(); final MockletHttpServletRequest request = createMockletHttpServletRequest(servletConfig.getServletContext()); final MockletHttpServletResponse response = createMockletHttpServletResponse(request); externalContext.setRequest(request); externalContext.setResponse(response); xkeepMockRequestInstance(request, response); // for web mock handling methods }