|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.resteasy.hypermedia.renderer.ResourceContext.Builder
public static final class ResourceContext.Builder
Builds instances of ResourceContext
.
Constructor Summary | |
---|---|
ResourceContext.Builder() |
Method Summary | |
---|---|
ResourceContext |
build() Creates the instance. |
ResourceContext.Builder |
with(Annotation[] annotations) Sets the array of the annotations attached to the message entity instance. |
ResourceContext.Builder |
with(javax.servlet.http.HttpServletRequest request) Sets the access to the HTTP request. |
ResourceContext.Builder |
with(javax.servlet.http.HttpServletResponse response) Sets the access to the HTTP response. |
ResourceContext.Builder |
with(LocalizationProvider l7nProvider) Sets the helper to access localized information. |
ResourceContext.Builder |
with(javax.ws.rs.core.MediaType mediaType) Sets the media type of the HTTP entity. |
ResourceContext.Builder |
with(Resources discovery) Sets the repository of resource link exits. |
ResourceContext.Builder |
with(javax.ws.rs.core.UriInfo uriInfo) Sets the helper to construct URIs. |
ResourceContext.Builder |
withGenericType(Type genericType) Sets the type of instance to be written. |
ResourceContext.Builder |
withHttpHeaders(javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders) Sets the mutable map of the HTTP message headers. |
ResourceContext.Builder |
withType(Class<?> type) Sets the class of instance that is to be written. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceContext.Builder()
Method Detail |
---|
public ResourceContext.Builder with(javax.servlet.http.HttpServletRequest request)
request
- the access to the HTTP request.
public ResourceContext.Builder with(javax.servlet.http.HttpServletResponse response)
response
- the access to the HTTP response.
public ResourceContext.Builder with(javax.ws.rs.core.UriInfo uriInfo)
uriInfo
- the helper to construct URIs.
public ResourceContext.Builder with(LocalizationProvider l7nProvider)
l7nProvider
- the helper to access localized information.
public ResourceContext.Builder with(Resources discovery)
discovery
- the repository of resource link exits.
public ResourceContext.Builder withType(Class<?> type)
type
- the class of instance that is to be written.
public ResourceContext.Builder withGenericType(Type genericType)
GenericEntity
provides a way to specify this information at runtime.
genericType
- the type of instance to be written.
public ResourceContext.Builder with(Annotation[] annotations)
annotations
- the array of the annotations attached to the message entity instance.
public ResourceContext.Builder with(javax.ws.rs.core.MediaType mediaType)
mediaType
- the media type of the HTTP entity.
public ResourceContext.Builder withHttpHeaders(javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders)
httpHeaders
- the mutable map of the HTTP message headers.
public ResourceContext build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |