Package org.apache.wicket.request

Examples of org.apache.wicket.request.Request


  @Ignore // TODO @svenmeier: How to regenerate the encrypted url ?
  public void resourceReferenceWithMoreSegments()
  {
    String encrypted = "X5EA-RpmG5-t7GSByiSposVVWJ28fpoU-XgFo7bOPITjbCTT6mLI5l-7b-WJucu-Kc8StVsu-PL5htkbIxuxphv3mYi5-mmkCvkxPsriihj5VPg3naw2fA/X5E87/b-W6b/l-795/Juc97/more/crypt.txt";

    Request request = getRequest(Url.parse(encrypted));

    IRequestHandler requestHandler = mapper.mapRequest(request);

    assertTrue(requestHandler instanceof ResourceReferenceRequestHandler);
    ResourceReferenceRequestHandler handler = (ResourceReferenceRequestHandler)requestHandler;
View Full Code Here


  @Ignore // TODO @svenmeier: How to regenerate the encrypted url ?
  public void resourceReferenceWithLessSegments()
  {
    String encrypted = "X5EA-RpmG5-t7GSByiSposVVWJ28fpoU-XgFo7bOPITjbCTT6mLI5l-7b-WJucu-Kc8StVsu-PL5htkbIxuxphv3mYi5-mmkCvkxPsriihj5VPg3naw2fA/X5E87/b-W6b/l-795/less-crypt.txt";

    Request request = getRequest(Url.parse(encrypted));

    IRequestHandler requestHandler = mapper.mapRequest(request);

    assertTrue(requestHandler instanceof ResourceReferenceRequestHandler);
    ResourceReferenceRequestHandler handler = (ResourceReferenceRequestHandler)requestHandler;
View Full Code Here

    {
      return;
    }

    ISessionStore store = getSessionStore();
    Request request = RequestCycle.get().getRequest();
    if (store.lookup(request) == null)
    {
      // explicitly create a session
      id = store.getSessionId(request, true);
      // bind it
View Full Code Here

   */
  public void internalDetach()
  {
    if (dirty)
    {
      Request request = RequestCycle.get().getRequest();
      getSessionStore().flushSession(request, this);
    }
    dirty = false;
  }
View Full Code Here

        throw new IllegalStateException(
          "Cannot set the attribute: no RequestCycle available.  If you get this error when using WicketTester.startPage(Page), make sure to call WicketTester.createRequestCycle() beforehand.");
      }

      ISessionStore store = getSessionStore();
      Request request = cycle.getRequest();

      // extra check on session binding event
      if (value == this)
      {
        Object current = store.getAttribute(request, name);
View Full Code Here

    if (inputArrayCache == null)
    {
      // this array will aggregate all input names
      ArrayList<String> names = null;

      final Request request = getRequest();
      if (request instanceof IMultipartWebRequest)
      {
        // retrieve the filename->FileItem map from request
        final Map<String, List<FileItem>> itemNameToItem = ((IMultipartWebRequest)request).getFiles();
        for (Entry<String, List<FileItem>> entry : itemNameToItem.entrySet())
View Full Code Here

    String urlWoJSessionId = Strings.stripJSessionId(url);
    Url resolved = new Url(getRequest().getUrl());
    resolved.resolveRelative(Url.parse(urlWoJSessionId));

    IRequestMapper mapper = getApplication().getRootRequestMapper();
    Request request = getRequest().cloneWithUrl(resolved);
    IRequestHandler handler = mapper.mapRequest(request);

    if (handler != null)
    {
      getRequestCycle().scheduleRequestHandlerAfterCurrent(handler);
View Full Code Here

  private boolean isAjax(RequestCycle requestCycle)
  {
    boolean isAjax = false;

    Request request = requestCycle.getRequest();
    if (request instanceof WebRequest)
    {
      WebRequest webRequest = (WebRequest)request;
      isAjax = webRequest.isAjax();
    }
View Full Code Here

   * requests. Sometimes this method is useful when changes need to be checked without processing
   * a request.
   */
  public void applyRequest()
  {
    Request req = newServletWebRequest();
    requestCycle.setRequest(req);
    if (useRequestUrlAsBase)
    {
      requestCycle.getUrlRenderer().setBaseUrl(req.getUrl());
    }
  }
View Full Code Here

      @Override
      protected void onEvent(final AjaxRequestTarget target)
      {
        // Get clicked cursor position
        final Request request = RequestCycle.get().getRequest();
        IRequestParameters requestParameters = request.getRequestParameters();
        final int x = requestParameters.getParameterValue("x").toInt(0);
        final int y = requestParameters.getParameterValue("y").toInt(0);

        // Force refresh
        imageResource.clearData();
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.Request

Copyright © 2018 www.massapicom. 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.