Examples of WebApplication


Examples of jodd.madvoc.WebApplication

public class MadvocParamsInjectorTest {

  @Test
  public void testInjection() {
    WebApplication webapp = new WebApplication(true);
    webapp.registerMadvocComponents();

    PetiteContainer madpc = (PetiteContainer) webapp.getComponent(WebApplication.MADVOC_CONTAINER_NAME);
    MadvocConfig madvocConfig = new MadvocConfig();

    String baseName = FooBean.class.getName();

    madpc.defineParameter("foo", "1");
View Full Code Here

Examples of jrun.servlet.WebApplication

                    user = appSecurity.authenticate(username, password, request.getSession(true));
                }
                else
                {
                    ServletContext servletContext = FlexContext.getServletConfig().getServletContext();
                    WebApplication webApp = ((jrun.servlet.JRunServletContext)servletContext).getWebApplication();
                    HttpSession tempSession = webApp.getSessionService().createSession("temp");
                    user = appSecurity.authenticate(username, password, tempSession);
                    tempSession.invalidate();
                }
                return user.getPrincipal();
            }
View Full Code Here

Examples of org.apache.wicket.protocol.http.WebApplication

   * @since 6.0
   */
  protected final AjaxRequestAttributes getAttributes()
  {
    AjaxRequestAttributes attributes = new AjaxRequestAttributes();
    WebApplication application = (WebApplication) getComponent().getApplication();
    AjaxRequestTargetListenerCollection ajaxRequestTargetListeners = application.getAjaxRequestTargetListeners();
    for (AjaxRequestTarget.IListener listener : ajaxRequestTargetListeners)
    {
      if (listener instanceof AjaxRequestTarget.AbstractListener)
      {
        ((AjaxRequestTarget.AbstractListener) listener).updateAjaxAttributes(attributes);
View Full Code Here

Examples of org.apache.wicket.protocol.http.WebApplication

   * @see org.apache.wicket.behavior.IBehaviorListener#onRequest()
   */
  @Override
  public final void onRequest()
  {
    WebApplication app = (WebApplication)getComponent().getApplication();
    AjaxRequestTarget target = app.newAjaxRequestTarget(getComponent().getPage());

    RequestCycle requestCycle = RequestCycle.get();
    requestCycle.scheduleRequestHandlerAfterCurrent(target);

    respond(target);
View Full Code Here

Examples of org.apache.wicket.protocol.http.WebApplication

    }

    String key = req.getHeader("Sec-WebSocket-Key");
    resp.setHeader("Sec-WebSocket-Accept", getWebSocketAccept(key));

    WebApplication application = getApplication();
    // Small hack until the Servlet API provides a way to do this.
    TomcatWebSocketProcessor webSocketHandler = new TomcatWebSocketProcessor(req, application);
    TomcatWebSocketProcessor.TomcatWebSocket tomcatWebSocket = webSocketHandler.new TomcatWebSocket();

    // the request can be a wrapper from application servlet filters
View Full Code Here

Examples of org.apache.wicket.protocol.http.WebApplication

   * @see org.apache.wicket.behavior.IBehaviorListener#onRequest()
   */
  @Override
  public final void onRequest()
  {
    WebApplication app = (WebApplication)getComponent().getApplication();
    AjaxRequestTarget target = app.newAjaxRequestTarget(getComponent().getPage());

    RequestCycle requestCycle = RequestCycle.get();
    requestCycle.scheduleRequestHandlerAfterCurrent(target);

    respond(target);
View Full Code Here

Examples of org.apache.wicket.protocol.http.WebApplication

  public void commonBefore()
  {
    // make sure no leaked threadlocals are present
    ThreadContext.detach();

    WebApplication application = newApplication();
    tester = newWicketTester(application);
  }
View Full Code Here

Examples of org.apache.wicket.protocol.http.WebApplication

   * https://issues.apache.org/jira/browse/WICKET-5560
   */
  @Test
  public void enforceMountsWithCryptoMapper()
  {
      WebApplication app = tester.getApplication();
      app.setRootRequestMapper(new CryptoMapper(app.getRootRequestMapper(), app));
      enforceMounts();
  }
View Full Code Here

Examples of org.apache.wicket.protocol.http.WebApplication

public class GlobalUpdateAjaxAttributesTest extends WicketTestCase
{
  @Override
  protected WebApplication newApplication()
  {
    WebApplication application = super.newApplication();
    application.getAjaxRequestTargetListeners().add(new AjaxRequestTarget.AbstractListener()
    {
      @Override
      public void updateAjaxAttributes(Behavior behavior, AjaxRequestAttributes attributes)
      {
        super.updateAjaxAttributes(behavior, attributes);
View Full Code Here

Examples of org.apache.wicket.protocol.http.WebApplication

{

  @Override
  protected WebApplication newApplication()
  {
    WebApplication webApplication = new MockApplication()
    {
      @Override
      protected void init()
      {
        super.init();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.