|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.admin.resources.representation.share.LinkDescriptorFactory
public final class LinkDescriptorFactory
A simple helper to create LinkDescriptor
s.
Constructor Summary | |
---|---|
LinkDescriptorFactory(javax.ws.rs.core.UriInfo uriInfo, de.smartics.resteasy.hypermedia.renderer.LocalizationProvider provider) Default constructor. |
Method Summary | |
---|---|
de.smartics.resteasy.hypermedia.renderer.LinkDescriptor |
createDescriptor(ApiServices.ServiceDescriptor service, String method) Creates the link descriptor to the a generic service. |
de.smartics.resteasy.hypermedia.renderer.LinkDescriptor |
createDescriptor(String id, Class<?> type, String method, Object... params) Creates the link descriptor to the a generic service. |
de.smartics.resteasy.hypermedia.renderer.LinkDescriptor |
createDescriptor(String id, URI uri) Creates the link descriptor to the a generic service with a fixed, maybe external, URI. |
de.smartics.resteasy.hypermedia.renderer.LocalizationProvider |
getProvider() Returns the provider of localized information. |
javax.ws.rs.core.UriInfo |
getUriInfo() Returns the helper to construct links. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinkDescriptorFactory(javax.ws.rs.core.UriInfo uriInfo, de.smartics.resteasy.hypermedia.renderer.LocalizationProvider provider)
uriInfo
- the helper to construct links.
provider
- the provider of localized information.
Method Detail |
---|
public javax.ws.rs.core.UriInfo getUriInfo()
public de.smartics.resteasy.hypermedia.renderer.LocalizationProvider getProvider()
public de.smartics.resteasy.hypermedia.renderer.LinkDescriptor createDescriptor(String id, Class<?> type, String method, Object... params)
id
- the identifier of the resource to lookup link descriptor metadata.
type
- the type of the resource.
method
- the method within the resource.
params
- the parameters to the resource URI.
public de.smartics.resteasy.hypermedia.renderer.LinkDescriptor createDescriptor(String id, URI uri)
id
- the identifier of the resource to lookup link descriptor metadata.
uri
- the URI to the link.
public de.smartics.resteasy.hypermedia.renderer.LinkDescriptor createDescriptor(ApiServices.ServiceDescriptor service, String method)
service
- the service to create a link to.
method
- the method of the service to link to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |