Examples of queryParam()


Examples of javax.ws.rs.core.UriBuilder.queryParam()

                    URLEncoder.encode(info.getSamlRequest(), "UTF-8");
               
                UriBuilder ub = UriBuilder.fromUri(getIdpServiceAddress());
               
                ub.queryParam(SSOConstants.SAML_REQUEST, urlEncodedRequest);
                ub.queryParam(SSOConstants.RELAY_STATE, info.getRelayState());
                if (isSignRequest()) {
                    signRequest(urlEncodedRequest, info.getRelayState(), ub);
                }
               
                String contextCookie = createCookie(SSOConstants.RELAY_STATE,
View Full Code Here

Examples of javax.ws.rs.core.UriBuilder.queryParam()

                                          String scope) {
        UriBuilder ub = getAuthorizationURIBuilder(authorizationServiceURI,
                                                   clientId,
                                                   scope);
        if (redirectUri != null) {
            ub.queryParam(OAuthConstants.REDIRECT_URI, redirectUri);
        }
        if (state != null) {
            ub.queryParam(OAuthConstants.STATE, state);
        }
        return ub.build();
View Full Code Here

Examples of javax.ws.rs.core.UriBuilder.queryParam()

                                                   scope);
        if (redirectUri != null) {
            ub.queryParam(OAuthConstants.REDIRECT_URI, redirectUri);
        }
        if (state != null) {
            ub.queryParam(OAuthConstants.STATE, state);
        }
        return ub.build();
    }
   
    /**
 
View Full Code Here

Examples of javax.ws.rs.core.UriBuilder.queryParam()

    public static UriBuilder getAuthorizationURIBuilder(String authorizationServiceURI,
                                                 String clientId,
                                                 String scope) {
        UriBuilder ub = UriBuilder.fromUri(authorizationServiceURI);
        if (clientId != null) {
            ub.queryParam(OAuthConstants.CLIENT_ID, clientId);
        }
        if (scope != null) {
            ub.queryParam(OAuthConstants.SCOPE, scope);
        }
        ub.queryParam(OAuthConstants.RESPONSE_TYPE, OAuthConstants.CODE_RESPONSE_TYPE);
View Full Code Here

Examples of javax.ws.rs.core.UriBuilder.queryParam()

        UriBuilder ub = UriBuilder.fromUri(authorizationServiceURI);
        if (clientId != null) {
            ub.queryParam(OAuthConstants.CLIENT_ID, clientId);
        }
        if (scope != null) {
            ub.queryParam(OAuthConstants.SCOPE, scope);
        }
        ub.queryParam(OAuthConstants.RESPONSE_TYPE, OAuthConstants.CODE_RESPONSE_TYPE);
        return ub;                                  
    }
   
View Full Code Here

Examples of javax.ws.rs.core.UriBuilder.queryParam()

            ub.queryParam(OAuthConstants.CLIENT_ID, clientId);
        }
        if (scope != null) {
            ub.queryParam(OAuthConstants.SCOPE, scope);
        }
        ub.queryParam(OAuthConstants.RESPONSE_TYPE, OAuthConstants.CODE_RESPONSE_TYPE);
        return ub;                                  
    }
   
    /**
     * Obtains the access token from OAuth AccessToken Service
View Full Code Here

Examples of javax.ws.rs.core.UriBuilder.queryParam()

                String urlEncodedRequest =
                    URLEncoder.encode(info.getSamlRequest(), "UTF-8");
               
                UriBuilder ub = UriBuilder.fromUri(getIdpServiceAddress());
               
                ub.queryParam(SSOConstants.SAML_REQUEST, urlEncodedRequest);
                ub.queryParam(SSOConstants.RELAY_STATE, info.getRelayState());
                if (isSignRequest()) {
                    signRequest(urlEncodedRequest, info.getRelayState(), ub);
                }
               
View Full Code Here

Examples of javax.ws.rs.core.UriBuilder.queryParam()

                    URLEncoder.encode(info.getSamlRequest(), "UTF-8");
               
                UriBuilder ub = UriBuilder.fromUri(getIdpServiceAddress());
               
                ub.queryParam(SSOConstants.SAML_REQUEST, urlEncodedRequest);
                ub.queryParam(SSOConstants.RELAY_STATE, info.getRelayState());
                if (isSignRequest()) {
                    signRequest(urlEncodedRequest, info.getRelayState(), ub);
                }
               
                String contextCookie = createCookie(SSOConstants.RELAY_STATE,
View Full Code Here

Examples of javax.ws.rs.core.UriBuilder.queryParam()

   
    private URI buildCallbackURI(String callback, final Map<String, String> queryParams) {

        UriBuilder builder = UriBuilder.fromUri(callback);
        for (Map.Entry<String, String> entry : queryParams.entrySet()) {
            builder.queryParam(entry.getKey(), entry.getValue());
        }

        return builder.build();
    }
   
View Full Code Here

Examples of javax.ws.rs.core.UriBuilder.queryParam()

    }
   
    private Response getLink(File zipDir, Message m) {
        if (zipDir.exists() && new File(zipDir.getAbsolutePath(), "src.zip").exists()) {
            UriBuilder builder = ui.getAbsolutePathBuilder();
            String link = builder.queryParam(SOURCE_QUERY).build().toString();
            // TODO : move it into a resource template
            StringBuilder sb = new StringBuilder();
            sb.append("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
            sb.append("<head><title>Download the source</title></head>");
            sb.append("<body>");
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.