-
-
Notifications
You must be signed in to change notification settings - Fork 5
Header parameters
Ahmad K. Bawaneh edited this page Feb 16, 2020
·
2 revisions
Domino-rest can map method argument to request headers using the @HeaderParam
annotation.
@RequestFactory
public interface MoviesService {
@Path("library/movies/{name}")
@GET
Movie getMovieByName(@HeaderParam("name") String movieName, @HeaderParam("token") String requestToken);
}
When the request is sent the it will have a header token
with the value being the value of the requestToken argument value.
- Home
- Quick start
- Sharing clients
-
Configuration
- Locating resource classes
- Service root
- Resource root
- Http methods
- Service method path mapping
- Service path
- Query parameters
- Path parameters
- Header parameters
- Date format
- Request body
- Request and Response mapping
- Produces and Consumes
- Success codes
- Timeout and maximum retries
- With credentials
- Custom request URL
- Global interceptors
- Default failed response handler
- Interface inheritance
- Multipart form data