public class VersionResource extends ResourceBase
/version/rest
/version (alias for /version/rest)
CRLF, MIMETYPE_BINARY, MIMETYPE_HTML, MIMETYPE_JSON, MIMETYPE_PROTOBUF, MIMETYPE_PROTOBUF_IETF, MIMETYPE_TEXT, MIMETYPE_XML, VERSION_STRING
Constructor and Description |
---|
VersionResource()
Constructor
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
get(javax.servlet.ServletContext context,
javax.ws.rs.core.UriInfo uriInfo)
Build a response for a version request.
|
VersionResource |
getVersionResource()
Dispatch /version/rest to self.
|
public VersionResource() throws IOException
IOException
public javax.ws.rs.core.Response get(@Context javax.servlet.ServletContext context, @Context javax.ws.rs.core.UriInfo uriInfo)
context
- servlet contexturiInfo
- (JAX-RS context variable) request URLpublic VersionResource getVersionResource()
Copyright © 2016. All rights reserved.