@Documented @Target(value=TYPE) @Retention(value=RUNTIME) @Inherited public @interface Remote
Modifier and Type | Optional Element and Description |
---|---|
String[] |
headers
Default request headers.
|
Class<? extends HeaderSupplier> |
headerSupplier
Default request header supplier.
|
String |
path
REST service path.
|
String |
version
Specifies the client version of this interface.
|
String |
versionHeader
Specifies the client version header name.
|
public abstract String path
The possible values are:
public abstract String[] headers
Specifies headers to set on all requests.
public abstract Class<? extends HeaderSupplier> headerSupplier
Specifies a dynamic supplier of headers to set on all requests.
public abstract String version
Used to populate the
The format of this is a string of the format
The server side then uses an OSGi-version matching pattern to identify which methods to call:
public abstract String versionHeader
The default value is
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.