|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PocServiceHome
Basic, request independent lookup functionality for POC. The interface
extends from PocURIFactory
for convenience purposes in case a client
does only have access to the home interface but not an instance of a
PocService
. For performance reasons the PocURIFactory
of the
PocService
should be used in favor of PocURIFactory
on
PocServiceHome
wherever possible. However if a PocService
is
not used anyway, it is faster to use PocURIFactory
on
PocServiceHome
instead of requesting a PocService
for the
only purpose of accessing the PocURIFactory
interface.
Nested Class Summary | |
---|---|
static class |
PocServiceHome.FilterType
|
Field Summary | |
---|---|
static java.lang.Boolean |
CACHED
Represents the cached version of the data source factory |
static java.lang.Boolean |
UNCACHED
Represents the uncached version of the data source factory |
Method Summary | ||
---|---|---|
|
convert(java.lang.Class<T> dstClass,
DataSink src)
Converts a data sink into a wrapper of the desired type. |
|
|
convert(java.lang.Class<T> dstClass,
DataSource src)
Converts a data source into a wrapper of the desired type. |
|
java.net.URI |
createDigestURI(Addressable addr)
Creates a shortened URI that targets the Addressable object |
|
java.net.URI |
createDigestURI(java.net.URI uri,
java.util.Map<java.lang.String,java.lang.String[]> params)
Creates a shortened URI that targets the given URI and parameters |
|
java.net.URI |
createURI(java.lang.String uri)
Use PocService.createURI(String) instead if possible |
|
java.net.URI |
createURI(java.lang.String scheme,
java.lang.String schemeSpecificPart)
Use PocService.createURI(String, String) instead if possible |
|
java.net.URI |
createURI(java.net.URI uri)
Use PocService.createURI(URI) instead if possible |
|
Context |
getContext()
Returns a request independent COR context. |
|
DataSinkFactoryEx |
getDataSinkFactory()
Deprecated. use getDataSinkFactory(String) instead |
|
DataSinkFactoryEx |
getDataSinkFactory(java.lang.String httpMethod)
Returns a DataSinkFactoryEx that does a COR lookup to find the
actual DataSinkFactoryEx for the given HTTP method. |
|
DataSourceFactoryEx |
getDataSourceFactory(java.lang.Boolean bCached)
Returns a DataSourceFactoryEx that does a COR lookup to find the
actual DataSourceFactoryEx . |
|
FileTypeMap |
getFileTypeMap()
Returns the FileTypeMap that maps the suffixes of filenames to
mime types. |
|
PooledTemplates |
getIdentityTemplates()
Return the systemwide identity templates object that can be used to produce pooled identity transformers. |
|
InvalidationEventListener |
getInvalidationEventListener()
Returns an EventListener that can be used to invalidate URI
related cache entries in the caching infrastructure. |
|
LookupService |
getLookupService()
Returns the default lookup service that can be used to discover the service endpoints for services associated with POC URIs. |
|
ObjectPoolFactory |
getObjectPoolFactory()
Returns the object pool factory that is recommended to implement pooled data sources. |
|
ResolutionService |
getResolutionService()
Returns a ResolutionService that does a COR lookup to find the
actual ResolutionService . |
|
javax.servlet.Filter |
newFilter(PocServiceHome.FilterType type)
Creates a Filter . |
Methods inherited from interface com.ibm.portal.resolver.xml.PooledTransformerFactory |
---|
newPooledTemplates, newPooledTemplates, newPooledTemplates |
Methods inherited from interface com.ibm.portal.resolver.xml.ContentHandlerURIParserFactory |
---|
createContentHandlerURIParser |
Methods inherited from interface com.ibm.portal.resolver.cache.CacheFactory |
---|
getCachedDataSourceFactory, getCachedDataSourceFactory |
Field Detail |
---|
static final java.lang.Boolean CACHED
static final java.lang.Boolean UNCACHED
Method Detail |
---|
<T extends DataSink> T convert(java.lang.Class<T> dstClass, DataSink src) throws java.io.IOException
DataSink
. In particular the wrapper has to be
disposed by calling Disposable.dispose()
and this disposal will
also dispose the wrapped DataSink
, it must not be disposed in
addition to the wrapper. If the conversion was not successful, the
original DataSink
still needs to be disposed. This is also true
in case of an exception.
dstClass
- the class object of the target data sink interface, not
null
src
- the data sink
null
if the conversion was
not successful
java.io.IOException
<T extends DataSource> T convert(java.lang.Class<T> dstClass, DataSource src) throws java.io.IOException
DataSource
. In particular the wrapper has to be
disposed by calling Disposable.dispose()
and this disposal will
also dispose the wrapped DataSource
, it must not be disposed in
addition to the wrapper. If the conversion was not successful, the
original DataSource
still needs to be disposed. This is also true
in case of an exception.
dstClass
- the class object of the target data source interface, not
null
src
- the data source
null
if the conversion was
not successful
java.io.IOException
java.net.URI createDigestURI(Addressable addr) throws java.io.IOException, java.net.URISyntaxException
Addressable
object
addr
- the target object
java.io.IOException
java.net.URISyntaxException
java.net.URI createDigestURI(java.net.URI uri, java.util.Map<java.lang.String,java.lang.String[]> params) throws java.io.IOException, java.net.URISyntaxException
uri
- the target URIparams
- the target parameters
java.io.IOException
java.net.URISyntaxException
java.net.URI createURI(java.lang.String uri) throws java.net.URISyntaxException, java.io.IOException
PocService.createURI(String)
instead if possible
createURI
in interface PocURIFactory
uri
- the URI string, not null
. The uri must define
both valid, non-null and non-empty schema and schema specific
parts
null
java.net.URISyntaxException
java.io.IOException
java.net.URI createURI(java.lang.String scheme, java.lang.String schemeSpecificPart) throws java.net.URISyntaxException
PocService.createURI(String, String)
instead if possible
createURI
in interface PocURIFactory
scheme
- scheme, not null
schemeSpecificPart
- scheme specific part, not null
null
java.net.URISyntaxException
java.net.URI createURI(java.net.URI uri)
PocService.createURI(URI)
instead if possible
createURI
in interface PocURIFactory
uri
- the original URI, not null
. The uri must define
both valid, non-null and non-empty schema and schema specific
parts
null
Context getContext()
ContentIntrospector
, ContentTypeRegistry
and
ContentLocationRegistry
.
Use PocService.getContext()
to get a context that may be used to
access portal services.
null
@Deprecated DataSinkFactoryEx getDataSinkFactory()
getDataSinkFactory(String)
instead
DataSinkFactoryEx
that does a COR lookup to find the
actual DataSinkFactoryEx
.
DataSinkFactoryEx
, not null
DataSinkFactoryEx getDataSinkFactory(java.lang.String httpMethod)
DataSinkFactoryEx
that does a COR lookup to find the
actual DataSinkFactoryEx
for the given HTTP method.
httpMethod
- the method, not null
, e.g. "POST"
DataSinkFactoryEx
, or null
if no factory
could be located for the methodDataSourceFactoryEx getDataSourceFactory(java.lang.Boolean bCached)
DataSourceFactoryEx
that does a COR lookup to find the
actual DataSourceFactoryEx
.
bCached
- if true
a version will be returned that may cache
DataSource
objects, if false
then there
will be no cache involved, null
refers to the
system default
DataSourceFactoryEx
, not null
CACHED
,
UNCACHED
FileTypeMap getFileTypeMap()
FileTypeMap
that maps the suffixes of filenames to
mime types. This is useful when implementing the
DataSource.getContentType()
method on top of existing resources.
null
PooledTemplates getIdentityTemplates()
InvalidationEventListener getInvalidationEventListener()
EventListener
that can be used to invalidate URI
related cache entries in the caching infrastructure.
LookupService getLookupService()
LookupService
via the COR APIs. If this process fails, it will
use a default implementation as a fallback. In order to access only the
fallback implementation use an extension point lookup using the
information in LookupService
.
null
ObjectPoolFactory getObjectPoolFactory()
null
ResolutionService getResolutionService()
ResolutionService
that does a COR lookup to find the
actual ResolutionService
.
ResolutionService
, not null
javax.servlet.Filter newFilter(PocServiceHome.FilterType type)
Filter
. This filter is already initialized, i.e.
callers should not call Filter.init(javax.servlet.FilterConfig)
again. When the filter is no longer used, callers should call
Filter.destroy()
.
type
- type of the filter
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |