public class ResolveURIComponent extends AbstractLogEnabled implements Serviceable, Initializable, Contextualizable
Modifier and Type | Field and Description |
---|---|
private static Context |
_context |
private static ResolveURIComponent |
_instance |
private URIResolverExtensionPoint |
_linkResolverExtensionPoint |
Constructor and Description |
---|
ResolveURIComponent() |
Modifier and Type | Method and Description |
---|---|
void |
contextualize(Context context) |
void |
initialize() |
static String |
resolve(String type,
String uri)
Resolve an uri upon the LinkResolverExtensionPoint
|
static String |
resolve(String type,
String uri,
boolean download)
Resolve an uri upon the LinkResolverExtensionPoint
|
static String |
resolve(String type,
String uri,
boolean download,
boolean absolute)
Resolve an uri upon the LinkResolverExtensionPoint
|
static String |
resolve(String type,
String uri,
boolean download,
boolean absolute,
boolean internal)
Resolve an uri upon the LinkResolverExtensionPoint
|
static String |
resolveBoundedImage(String type,
String uri,
int maxHeight,
int maxWidth)
Resolve an uri upon the LinkResolverExtensionPoint
|
static String |
resolveBoundedImage(String type,
String uri,
int maxHeight,
int maxWidth,
boolean download)
Resolve an uri upon the LinkResolverExtensionPoint
|
static String |
resolveBoundedImage(String type,
String uri,
int maxHeight,
int maxWidth,
boolean download,
boolean absolute)
Resolve an uri upon the LinkResolverExtensionPoint
|
static String |
resolveBoundedImage(String type,
String uri,
int maxHeight,
int maxWidth,
boolean download,
boolean absolute,
boolean internal)
Resolve an uri upon the LinkResolverExtensionPoint
|
static String |
resolveCroppedImage(String type,
String uri,
int cropHeight,
int cropWidth)
Resolve an uri upon the LinkResolverExtensionPoint
|
static String |
resolveCroppedImage(String type,
String uri,
int cropHeight,
int cropWidth,
boolean download)
Resolve an uri upon the LinkResolverExtensionPoint
|
static String |
resolveCroppedImage(String type,
String uri,
int cropHeight,
int cropWidth,
boolean download,
boolean absolute)
Resolve an uri upon the LinkResolverExtensionPoint
|
static String |
resolveCroppedImage(String type,
String uri,
int cropHeight,
int cropWidth,
boolean download,
boolean absolute,
boolean internal)
Resolve an uri upon the LinkResolverExtensionPoint
|
static String |
resolveImage(String type,
String uri,
int height,
int width)
Resolve an uri upon the LinkResolverExtensionPoint
|
static String |
resolveImage(String type,
String uri,
int height,
int width,
boolean download)
Resolve an uri upon the LinkResolverExtensionPoint
|
static String |
resolveImage(String type,
String uri,
int height,
int width,
boolean download,
boolean absolute)
Resolve an uri upon the LinkResolverExtensionPoint
|
static String |
resolveImage(String type,
String uri,
int height,
int width,
boolean download,
boolean absolute,
boolean internal)
Resolve an uri upon the LinkResolverExtensionPoint
|
void |
service(ServiceManager manager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private static ResolveURIComponent _instance
private URIResolverExtensionPoint _linkResolverExtensionPoint
public ResolveURIComponent()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public static String resolve(String type, String uri)
type
- Type name (defined by the extension to use)uri
- URI depending on the typepublic static String resolve(String type, String uri, boolean download)
type
- Type name (defined by the extension to use)uri
- URI depending on the typedownload
- Is this uri for download purposes.public static String resolve(String type, String uri, boolean download, boolean absolute)
type
- Type name (defined by the extension to use)uri
- URI depending on the typedownload
- Is this uri for download purposes.absolute
- true to generate absolute urlpublic static String resolve(String type, String uri, boolean download, boolean absolute, boolean internal)
type
- Type name (defined by the extension to use)uri
- URI depending on the typedownload
- Is this uri for download purposes.absolute
- true to generate absolute urlinternal
- true to get an internal URI.public static String resolveImage(String type, String uri, int height, int width)
type
- Type name (defined by the extension to use)uri
- URI depending on the typeheight
- the heightwidth
- the widthpublic static String resolveImage(String type, String uri, int height, int width, boolean download)
type
- Type name (defined by the extension to use)uri
- URI depending on the typeheight
- the heightwidth
- the widthdownload
- Is this uri for download purposes.public static String resolveImage(String type, String uri, int height, int width, boolean download, boolean absolute)
type
- Type name (defined by the extension to use)uri
- URI depending on the typeheight
- the heightwidth
- the widthdownload
- Is this uri for download purposes.absolute
- true to generate absolute urlpublic static String resolveImage(String type, String uri, int height, int width, boolean download, boolean absolute, boolean internal)
type
- Type name (defined by the extension to use)uri
- URI depending on the typeheight
- the heightwidth
- the widthdownload
- Is this uri for download purposes.absolute
- true to generate absolute urlinternal
- true to get an internal URI.public static String resolveBoundedImage(String type, String uri, int maxHeight, int maxWidth)
type
- Type name (defined by the extension to use)uri
- URI depending on the typemaxHeight
- the max heightmaxWidth
- the max widthpublic static String resolveBoundedImage(String type, String uri, int maxHeight, int maxWidth, boolean download)
type
- Type name (defined by the extension to use)uri
- URI depending on the typemaxHeight
- the max heightmaxWidth
- the max widthdownload
- Is this uri for download purposes.public static String resolveBoundedImage(String type, String uri, int maxHeight, int maxWidth, boolean download, boolean absolute)
type
- Type name (defined by the extension to use)uri
- URI depending on the typemaxHeight
- the max heightmaxWidth
- the max widthdownload
- Is this uri for download purposes.absolute
- true to generate absolute urlpublic static String resolveBoundedImage(String type, String uri, int maxHeight, int maxWidth, boolean download, boolean absolute, boolean internal)
type
- Type name (defined by the extension to use)uri
- URI depending on the typemaxHeight
- the max heightmaxWidth
- the max widthdownload
- Is this uri for download purposes.absolute
- true to generate absolute urlinternal
- true to get an internal URI.public static String resolveCroppedImage(String type, String uri, int cropHeight, int cropWidth)
type
- Type name (defined by the extension to use)uri
- URI depending on the typecropHeight
- the crop heightcropWidth
- the crop widthpublic static String resolveCroppedImage(String type, String uri, int cropHeight, int cropWidth, boolean download)
type
- Type name (defined by the extension to use)uri
- URI depending on the typecropHeight
- the crop heightcropWidth
- the crop widthdownload
- Is this uri for download purposes.public static String resolveCroppedImage(String type, String uri, int cropHeight, int cropWidth, boolean download, boolean absolute)
type
- Type name (defined by the extension to use)uri
- URI depending on the typecropHeight
- the crop heightcropWidth
- the crop widthdownload
- Is this uri for download purposes.absolute
- true to generate absolute urlpublic static String resolveCroppedImage(String type, String uri, int cropHeight, int cropWidth, boolean download, boolean absolute, boolean internal)
type
- Type name (defined by the extension to use)uri
- URI depending on the typecropHeight
- the crop heightcropWidth
- the crop widthdownload
- Is this uri for download purposes.absolute
- true to generate absolute urlinternal
- true to get an internal URI.