public class RestServiceDsl extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<PathDefinition> |
paths |
| Constructor and Description |
|---|
RestServiceDsl() |
| Modifier and Type | Method and Description |
|---|---|
PathDefinition |
addPath(PathDefinition pathDefinition) |
RestRequestHandler |
handler(RestRequestHandler requestHandler) |
protected HandlerDefinition |
handlerDefinition(RestRequestHandler restRequestHandler) |
PathDefinition |
path(String pathTemplate) |
HandlerDefinition |
type(MediaType mediaType,
RestRequestHandler restRequestHandler) |
protected List<PathDefinition> paths
public PathDefinition path(String pathTemplate)
public RestRequestHandler handler(RestRequestHandler requestHandler)
protected HandlerDefinition handlerDefinition(RestRequestHandler restRequestHandler)
public HandlerDefinition type(MediaType mediaType, RestRequestHandler restRequestHandler)
public PathDefinition addPath(PathDefinition pathDefinition)
Copyright © 2014. All rights reserved.