Examples of queryParam()


Examples of org.jboss.resteasy.client.jaxrs.ResteasyWebTarget.queryParam()

      ResteasyClient client = new ResteasyClientBuilder().httpEngine(engine).build();
      ResteasyWebTarget target = client.target(TestPortProvider.generateURL("/timeout"));
      try
      {
         Response response = target.queryParam("sleep", "5").request().get();
         Assert.fail();
      }
      catch (ProcessingException e)
      {
         Assert.assertEquals(e.getCause().getClass(), SocketTimeoutException.class);
View Full Code Here

Examples of org.jboss.resteasy.specimpl.UriBuilderImpl.queryParam()

         for (Map.Entry<String, List<String>> entry : queryParameters
                 .entrySet())
         {
            List<String> values = entry.getValue();
            for (String value : values)
               builder.queryParam(entry.getKey(), value);
         }
      }
      if (pathParameterList != null && !pathParameterList.isEmpty())
      {
         finalUri = builder.build(pathParameterList.toArray()).toString();
View Full Code Here

Examples of org.jboss.resteasy.specimpl.UriBuilderImpl.queryParam()

         for (Map.Entry<String, List<String>> entry : queryParameters
                 .entrySet())
         {
            List<String> values = entry.getValue();
            for (String value : values)
               builder.queryParam(entry.getKey(), value);
         }
      }
      if (pathParameterList != null && !pathParameterList.isEmpty())
      {
         finalUri = builder.build(pathParameterList.toArray()).toString();
View Full Code Here

Examples of org.jboss.resteasy.specimpl.UriBuilderImpl.queryParam()

         for (Map.Entry<String, List<String>> entry : queryParameters
                 .entrySet())
         {
            List<String> values = entry.getValue();
            for (String value : values)
               builder.queryParam(entry.getKey(), value);
         }
      }
      if (pathParameterList != null && !pathParameterList.isEmpty())
      {
         finalUri = builder.build(pathParameterList.toArray()).toString();
View Full Code Here

Examples of org.keycloak.util.KeycloakUriBuilder.queryParam()

        KeycloakUriBuilder uriBuilder =  KeycloakUriBuilder.fromUri(getUrl(request, authUrl, true))
                .queryParam(OAuth2Constants.CLIENT_ID, clientId)
                .queryParam(OAuth2Constants.REDIRECT_URI, redirectUri)
                .queryParam(OAuth2Constants.STATE, state);
        if (scope != null) {
            uriBuilder.queryParam(OAuth2Constants.SCOPE, scope);
        }
        URI url = uriBuilder.build();

        String stateCookiePath = this.stateCookiePath;
        if (stateCookiePath == null) stateCookiePath = request.getContextPath();
View Full Code Here

Examples of org.springframework.security.oauth2.provider.ServerRunning.UriBuilder.queryParam()

    String clientId = "my-client-with-registered-redirect";

    UriBuilder uri = serverRunning.buildUri("/sparklr2/oauth/authorize").queryParam("response_type", "code")
        .queryParam("state", "mystateid").queryParam("scope", scope);
    if (clientId != null) {
      uri.queryParam("client_id", clientId);
    }
    if (redirectUri != null) {
      uri.queryParam("redirect_uri", redirectUri);
    }
    ResponseEntity<String> response = serverRunning.getForString(uri.pattern(), headers, uri.params());
View Full Code Here

Examples of org.springframework.social.support.URIBuilder.queryParam()

      @RequestParam(value="error_description", required=false) String errorDescription,
      @RequestParam(value="error_uri", required=false) String errorUri,
      NativeWebRequest request) {
    logger.warn("Error during authorization: " + error);
    URIBuilder uriBuilder = URIBuilder.fromUri(signInUrl).queryParam("error", error);
    if (errorDescription != null ) { uriBuilder.queryParam("error_description", errorDescription); }
    if (errorUri != null ) { uriBuilder.queryParam("error_uri", errorUri); }
    return redirect(uriBuilder.build().toString());
  }

  /**
 
View Full Code Here

Examples of org.springframework.web.util.UriComponentsBuilder.queryParam()

  }

  private String encodeUrl(String baseUrl, Map<String, List<String>> parameters) {
    UriComponentsBuilder builder = UriComponentsBuilder.fromUriString(baseUrl);
    for (Map.Entry<String, List<String>> entry : parameters.entrySet()) {
      builder.queryParam(entry.getKey(), entry.getValue().toArray());
    }
    return builder.buildAndExpand().toUriString();
  }

View Full Code Here

Examples of org.webbitserver.netty.NettyHttpRequest.queryParam()

    @Test
    public void decodesQueryParams() {
        HttpRequest httpRequest = new DefaultHttpRequest(HttpVersion.HTTP_1_0, HttpMethod.GET, "http://example.com/?foo=bar");
        NettyHttpRequest nhr = new NettyHttpRequest(null, httpRequest, null, 0L);
        assertEquals(nhr.queryParam("foo"), "bar");
    }

    @Test
    public void decodesQueryParamsContainingEncodedEquals() {
        HttpRequest httpRequest = new DefaultHttpRequest(HttpVersion.HTTP_1_0, HttpMethod.GET, "http://example.com/?foo=a%2Bb%3Dc");
View Full Code Here

Examples of org.webbitserver.stub.StubHttpRequest.queryParam()

    private static final List<String> EMPTY = Collections.emptyList();

    @Test
    public void extractsSingleQueryParameter() throws Exception {
        HttpRequest req = new StubHttpRequest("http://host.com:8080/path?fish=cod&fruit=orange");
        assertEquals("cod", req.queryParam("fish"));
    }

    @Test
    public void extractsMultipleQueryParameters() throws Exception {
        HttpRequest req = new StubHttpRequest("http://host.com:8080/path?fish=cod&fruit=orange&fish=smørflyndre");
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.