@Services(value={@Service(value=java.lang.Object.class),@Service(value=ThumbnailService.class)}) @Property(name="javax.ws.rs", boolValue=true) public class ThumbnailService extends Object implements org.osgi.framework.BundleListener
Constructor and Description |
---|
ThumbnailService() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
void |
bundleChanged(org.osgi.framework.BundleEvent be) |
protected void |
deactivate(org.osgi.service.component.ComponentContext context) |
UriRef |
getThumbnailUri(UriRef infoBitUri,
Integer width,
Integer height)
Returns the thumbnail uri for a InfoDiscoBit which is located at the uri
specified over the query parameter "uri".
|
UriRef |
getThumbnailUri(UriRef infoBitUri,
Integer width,
Integer height,
boolean exact)
Returns the thumbnail uri for a InfoDiscoBit which is located at the uri
specified over the query parameter "uri".
|
javax.ws.rs.core.Response |
getThumbnailUri(UriRef infoBitUri,
Integer width,
Integer height,
Boolean exact,
javax.ws.rs.core.UriInfo uriInfo)
Returns the thumbnail uri for a InfoDiscoBit which is located at the uri
specified over the query parameter "uri".
|
protected void activate(org.osgi.service.component.ComponentContext context)
protected void deactivate(org.osgi.service.component.ComponentContext context)
public javax.ws.rs.core.Response getThumbnailUri(UriRef infoBitUri, Integer width, Integer height, Boolean exact, @Context javax.ws.rs.core.UriInfo uriInfo)
infoBitUri
- the uri of the infoDiscoBit of which the thumbnail uri should
be returnedheight
- the maximum height that the thumbnail haswidth
- the maximum width that the thumbnail hasexact
- boolean that specifies if the return thumbnail should have
the exact width and height.public UriRef getThumbnailUri(UriRef infoBitUri, Integer width, Integer height)
infoBitUri
- the uri of the infoDiscoBit of which the thumbnail uri should
be returnedheight
- the maximum height that the thumbnail haswidth
- the maximum width that the thumbnail haspublic UriRef getThumbnailUri(UriRef infoBitUri, Integer width, Integer height, boolean exact)
infoBitUri
- the uri of the infoDiscoBit of which the thumbnail uri should
be returnedheight
- the maximum height that the thumbnail haswidth
- the maximum width that the thumbnail hasexact
- boolean that specifies if the return thumbnail should have
the exact width and height.public void bundleChanged(org.osgi.framework.BundleEvent be)
bundleChanged
in interface org.osgi.framework.BundleListener
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.