Package com.eviware.soapui.impl.rest

Examples of com.eviware.soapui.impl.rest.OAuth2ProfileContainer


    @Override
    public void filterRestRequest(SubmitContext context, RestRequestInterface request) {

        HttpRequestBase httpMethod = (HttpRequestBase) context.getProperty(BaseHttpRequestTransport.HTTP_METHOD);

        OAuth2ProfileContainer profileContainer = request.getResource().getService().getProject()
                .getOAuth2ProfileContainer();

        if (O_AUTH_2_0.toString().equals(request.getAuthType())) {
            OAuth2Profile profile = profileContainer.getProfileByName(((AbstractHttpRequest) request).getSelectedAuthProfile());
            if (profile == null || StringUtils.isNullOrEmpty(profile.getAccessToken())) {
                return;
            }
            OAuth2ClientFacade oAuth2Client = getOAuth2ClientFacade();
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.rest.OAuth2ProfileContainer

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.