Package com.uip.tatar.network

Examples of com.uip.tatar.network.HttpQueryParams


        this.client = client;
    }

    @Override
    public GibddFines getFines(Vehicle vehicle) throws APITatarException {
        HttpQueryParams params = new HttpQueryParams();
        params.put("vehicle[number]", vehicle.getLatinizeNumber());
        params.put("vehicle[region]", vehicle.getRegion());
        params.put("vehicle[document_number]", vehicle.getPassport());


        return client.get(
                new APITatarAuthRequest("services/gibdd/fines", params),
                new GibddFinesModelFactory()
View Full Code Here


     * @return
     * @throws APITatarException
     */
    @Override
    public User getUser(String username, String password) throws APITatarException{
        HttpQueryParams params = new HttpQueryParams();
        params.put("username", username);
        params.put("password", password);

        return client.get(
                new APITatarAuthRequest(USERS_SECTION, params),
                new UserModelFactory(true)
        );
View Full Code Here

    private final static String REQUEST_DEBUG_LOG_PATTERN = "{'REQUEST' : {'HTTP_METHOD':'%s', 'URL':'%s', 'ENTITY': %s}}";

    public APITatarRequest(String resource) {
        setResource(resource);
        this.headers    = new HashMap<String, String>();
        this.query      = new HttpQueryParams();
        this.content    = new JsonHttpEntity();
    }
View Full Code Here

    }

    public APITatarRequest(String resource, HashMap<String, String> headers) {
        setResource(resource);
        this.headers    = headers;
        this.query      = new HttpQueryParams();
        this.content    = new JsonHttpEntity();
    }
View Full Code Here

        this.content    = new JsonHttpEntity();
    }

    public APITatarRequest(String resource, JsonHttpEntity content) {
        setResource(resource);
        this.query      = new HttpQueryParams();
        this.content    = content;
        this.headers    = new HashMap<String, String>();
    }
View Full Code Here

        this.headers    = new HashMap<String, String>();
    }

    public APITatarRequest(String resource, JsonHttpEntity content, HashMap<String, String> headers) {
        setResource(resource);
        this.query      = new HttpQueryParams();
        this.content    = content;
        this.headers    = headers;
    }
View Full Code Here

TOP

Related Classes of com.uip.tatar.network.HttpQueryParams

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.