public static class

LinkedInApiUrls.LinkedInApiUrlBuilder

extends Object
java.lang.Object
   ↳ com.google.code.linkedinapi.client.constant.LinkedInApiUrls.LinkedInApiUrlBuilder

Class Overview

The Class LinkedInApiUrlBuilder.

Summary

Constants
char API_URLS_PLACEHOLDER_END The Constant API_URLS_PLACEHOLDER_END.
char API_URLS_PLACEHOLDER_START The Constant API_URLS_PLACEHOLDER_START.
String QUERY_PARAMETERS_PLACEHOLDER The Constant QUERY_PARAMETERS_PLACEHOLDER.
Fields
private Map<String, String> fieldsMap The fields map.
private Map<String, Collection<String>> parametersMap The parameters map.
private String urlFormat The url format.
private String urlType The url type.
Public Constructors
LinkedInApiUrls.LinkedInApiUrlBuilder(String urlFormat)
Instantiates a new linked in api url builder.
LinkedInApiUrls.LinkedInApiUrlBuilder(String urlFormat, String urlType)
Instantiates a new linked in api url builder.
Public Methods
String buildUrl()
Builds the url.
LinkedInApiUrls.LinkedInApiUrlBuilder withEmptyField(String name)
With empty field.
LinkedInApiUrls.LinkedInApiUrlBuilder withFacets(List<Parameter<FacetType, String>> facets)
LinkedInApiUrls.LinkedInApiUrlBuilder withField(String name, String value, boolean escape)
With field.
LinkedInApiUrls.LinkedInApiUrlBuilder withField(String name, String value)
With field.
LinkedInApiUrls.LinkedInApiUrlBuilder withFieldEnum(String name, FieldEnum value)
With field enum.
LinkedInApiUrls.LinkedInApiUrlBuilder withFieldEnumSet(String name, Set<? extends CompositeEnum<?>> enumSet)
With field enum set.
LinkedInApiUrls.LinkedInApiUrlBuilder withParameter(String name, String value)
With parameter.
LinkedInApiUrls.LinkedInApiUrlBuilder withParameterEnum(String name, FieldEnum value)
With parameter enum.
LinkedInApiUrls.LinkedInApiUrlBuilder withParameterEnumMap(Map<? extends FieldEnum, String> enumMap)
With parameter enum map.
LinkedInApiUrls.LinkedInApiUrlBuilder withParameterEnumSet(String name, Set<? extends FieldEnum> enumSet)
With parameter enum set.
LinkedInApiUrls.LinkedInApiUrlBuilder withParameters(String name, Collection<String> values)
With parameters.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

private static final char API_URLS_PLACEHOLDER_END

The Constant API_URLS_PLACEHOLDER_END.

Constant Value: 125 (0x0000007d)

private static final char API_URLS_PLACEHOLDER_START

The Constant API_URLS_PLACEHOLDER_START.

Constant Value: 123 (0x0000007b)

private static final String QUERY_PARAMETERS_PLACEHOLDER

The Constant QUERY_PARAMETERS_PLACEHOLDER.

Constant Value: "queryParameters"

Fields

private Map<String, String> fieldsMap

The fields map.

private Map<String, Collection<String>> parametersMap

The parameters map.

private String urlFormat

The url format.

private String urlType

The url type.

Public Constructors

public LinkedInApiUrls.LinkedInApiUrlBuilder (String urlFormat)

Instantiates a new linked in api url builder.

Parameters
urlFormat The url format

public LinkedInApiUrls.LinkedInApiUrlBuilder (String urlFormat, String urlType)

Instantiates a new linked in api url builder.

Parameters
urlFormat The url format
urlType The url type

Public Methods

public String buildUrl ()

Builds the url.

Returns
  • the string

public LinkedInApiUrls.LinkedInApiUrlBuilder withEmptyField (String name)

With empty field.

Parameters
name The name
Returns
  • the linked in api url builder

public LinkedInApiUrls.LinkedInApiUrlBuilder withFacets (List<Parameter<FacetType, String>> facets)

Parameters
facets

public LinkedInApiUrls.LinkedInApiUrlBuilder withField (String name, String value, boolean escape)

With field.

Parameters
name The name
value The value
escape
Returns
  • the linked in api url builder

public LinkedInApiUrls.LinkedInApiUrlBuilder withField (String name, String value)

With field.

Parameters
name The name
value The value
Returns
  • the linked in api url builder

public LinkedInApiUrls.LinkedInApiUrlBuilder withFieldEnum (String name, FieldEnum value)

With field enum.

Parameters
name The name
value The value
Returns
  • the linked in api url builder

public LinkedInApiUrls.LinkedInApiUrlBuilder withFieldEnumSet (String name, Set<? extends CompositeEnum<?>> enumSet)

With field enum set.

Parameters
name The name
enumSet The enum set
Returns
  • the linked in api url builder

public LinkedInApiUrls.LinkedInApiUrlBuilder withParameter (String name, String value)

With parameter.

Parameters
name The name
value The value
Returns
  • the linked in api url builder

public LinkedInApiUrls.LinkedInApiUrlBuilder withParameterEnum (String name, FieldEnum value)

With parameter enum.

Parameters
name The name
value The value
Returns
  • the linked in api url builder

public LinkedInApiUrls.LinkedInApiUrlBuilder withParameterEnumMap (Map<? extends FieldEnum, String> enumMap)

With parameter enum map.

Parameters
enumMap The enum map
Returns
  • the linked in api url builder

public LinkedInApiUrls.LinkedInApiUrlBuilder withParameterEnumSet (String name, Set<? extends FieldEnum> enumSet)

With parameter enum set.

Parameters
name The name
enumSet The enum set
Returns
  • the linked in api url builder

public LinkedInApiUrls.LinkedInApiUrlBuilder withParameters (String name, Collection<String> values)

With parameters.

Parameters
name The name
values The values
Returns
  • the linked in api url builder