use of com.linkedin.jersey.api.uri.UriBuilder in project rest.li by linkedin.
the class RewriteClient method rewriteUri.
private URI rewriteUri(URI uri) {
assert _serviceName.equals(LoadBalancerUtil.getServiceNameFromUri(uri));
String path = LoadBalancerUtil.getRawPathFromUri(uri);
UriBuilder builder = UriBuilder.fromUri(_uri);
if (path != null) {
builder.path(path);
}
builder.replaceQuery(uri.getRawQuery());
builder.fragment(uri.getRawFragment());
URI rewrittenUri = builder.build();
debug(_log, "rewrite uri ", uri, " -> ", rewrittenUri);
return rewrittenUri;
}
use of com.linkedin.jersey.api.uri.UriBuilder in project rest.li by linkedin.
the class ActionRequestUriBuilder method build.
@Override
public URI build() {
ActionRequest<?> actionRequest = getRequest();
UriBuilder b = UriBuilder.fromUri(buildBaseUriWithPrefix());
if (actionRequest.getId() != null) {
appendKeyToPath(b, actionRequest.getId());
}
appendQueryParams(b);
return b.build();
}
use of com.linkedin.jersey.api.uri.UriBuilder in project rest.li by linkedin.
the class BatchCreateIdEntityRequestUriBuilder method build.
@Override
public URI build() {
UriBuilder b = UriBuilder.fromUri(buildBaseUriWithPrefix());
appendQueryParams(b);
return b.build();
}
use of com.linkedin.jersey.api.uri.UriBuilder in project rest.li by linkedin.
the class BatchCreateIdRequestUriBuilder method build.
@Override
public URI build() {
UriBuilder b = UriBuilder.fromUri(buildBaseUriWithPrefix());
appendQueryParams(b);
return b.build();
}
use of com.linkedin.jersey.api.uri.UriBuilder in project rest.li by linkedin.
the class BatchCreateRequestUriBuilder method build.
@Override
public URI build() {
UriBuilder b = UriBuilder.fromUri(buildBaseUriWithPrefix());
appendQueryParams(b);
return b.build();
}
Aggregations