Head Interface

Implements

public interface Head
implements Annotation

HTTP HEAD method annotation describing the parameterized relative path to a REST endpoint.

The required value can be either a relative path or an absolute path. When it's an absolute path, it must start with a protocol or a parameterized segment (otherwise the parse cannot tell if it's absolute or relative)

Example 1: Relative path segments

@Head("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/"
     + "virtualMachines/{vmName}")
 boolean checkNameAvailability(@PathParam("resourceGroupName") String rgName,
     @PathParam("vmName") String vmName,
     @PathParam("subscriptionId") String subscriptionId);

Example 2: Absolute path segment

@Head("{storageAccountId}")
 boolean checkNameAvailability(@PathParam("storageAccountId") String storageAccountId);

Method Summary

Modifier and Type Method and Description
abstract String value()

Get the relative path of the annotated method's HEAD URL.

Method Details

value

public abstract String value()

Get the relative path of the annotated method's HEAD URL.

Returns:

The relative path of the annotated method's HEAD URL.

Applies to