All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fasterxml.clustermate.std.JdkHttpClientPath Maven / Gradle / Ivy

Go to download

Data types needed for service abstraction, used by both server and client components.

The newest version!
package com.fasterxml.clustermate.std;

import com.fasterxml.clustermate.api.RequestPath;

/**
 * {@link RequestPath} that {@link JdkHttpClientPathBuilder} creates
 */
public class JdkHttpClientPath
    extends RequestPath
{
    protected final String _serverPart;

    protected final String _path;

    protected final String[] _queryParams;

    protected final Object[] _headers;
    
    /**
     * Constructor used by {@link JdkHttpClientPathBuilder}
     */
    public JdkHttpClientPath(JdkHttpClientPathBuilder src) {
        _serverPart = src._serverPart;
        _path = src._path;
        _queryParams = _listToArray(src._queryParams);
        _headers = _mapToArray(src._headers);
    }
    
    @SuppressWarnings("unchecked")
    @Override
    public JdkHttpClientPathBuilder builder() {
        return new JdkHttpClientPathBuilder(this);
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy