|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PocService
Service that provides access to POC specific functionality. This service must
be disposed by a call to Disposable.dispose()
after it has been
retrieved via its home interface.
Disposable
,
PortalPocServiceHome
,
PortletPocServiceHome
,
CorPocServiceHomes
Method Summary | |
---|---|
Context |
createContext()
Deprecated. use getContext() instead. |
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)
Parses the URI string and creates a new URI object. |
java.net.URI |
createURI(java.lang.String scheme,
java.lang.String schemeSpecificPart)
Creates a new URI based on scheme and scheme specific part. |
java.net.URI |
createURI(java.net.URI uri)
Creates a new URI based on an existing URI. |
ContentHandlerURIParser |
createXMLReader(java.lang.Boolean bCached)
Constructs a URIParser that parses a DataSource onto a
ContentHandler . |
DigestContext |
getContext()
Returns the COR Context for the environment that matches the
service environment. |
ContextAccessor |
getContextAccessor()
Returns access to information about the current access context. |
LookupService |
getLookupService()
Deprecated. use PocServiceHome.getLookupService() instead |
java.lang.String |
getNonce()
Deprecated. use ContextAccessor.getNonce() instead |
PocServerContext |
getServerContext()
Returns the server context that describes the server configuration for this service instance (i.e. |
URIParser |
getURIParser(java.lang.Boolean bCached)
Returns a parser that performs a lookup for data sources in the current context |
PocURLFactory |
getURLFactory()
Returns access to the URL generation functionality for POC URLs |
DisposablePocURLFactory |
getURLFactory(PocServerContext serverContext)
Returns access to the URL generation functionality for POC URLs. |
boolean |
resolve(StateHolderController ctrl,
java.net.URI uri,
java.lang.String verb,
java.util.Map<java.lang.String,java.lang.String[]> params)
Performs state resolution in the scope of the current request. |
void |
serveHeaders(DataSource aDataSource)
Serves the response headers for the given DataSource . |
Methods inherited from interface com.ibm.portal.Disposable |
---|
dispose |
Method Detail |
---|
@Deprecated Context createContext()
getContext()
instead.
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
URI
object.
createURI
in interface PocURIFactory
uri
- the URI string, not null
java.net.URISyntaxException
java.io.IOException
java.net.URI createURI(java.lang.String scheme, java.lang.String schemeSpecificPart) throws java.net.URISyntaxException
URI
based on scheme and scheme specific part. This
method is preferable to the constructor of the URI
object because
it potentially caches frequently used URIs.
createURI
in interface PocURIFactory
scheme
- scheme, not null
schemeSpecificPart
- scheme specific part, not null
java.net.URISyntaxException
java.net.URI createURI(java.net.URI uri)
URI
based on an existing URI. The purpose of this
method is to provide a canonical mapping of URI
object.s
createURI
in interface PocURIFactory
uri
- the original URI, not null
ContentHandlerURIParser createXMLReader(java.lang.Boolean bCached) throws org.xml.sax.SAXException
URIParser
that parses a DataSource
onto a
ContentHandler
.
bCached
- indicates if the parser internally caches the parsing result.
null
. The instance must be disposed
via a call to Disposable.dispose()
after usage.
org.xml.sax.SAXException
DigestContext getContext()
Context
for the environment that matches the
service environment. This context can be used to issue custom COR
lookups.
null
ContextAccessor getContextAccessor()
@Deprecated LookupService getLookupService()
PocServiceHome.getLookupService()
instead
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
@Deprecated java.lang.String getNonce()
ContextAccessor.getNonce()
instead
null
PocServerContext getServerContext()
getServerContext
in interface PocServerContextProvider
getServerContext
in interface ServerContextProvider
null
URIParser getURIParser(java.lang.Boolean bCached)
bCached
- indicates if the parser internally caches the parsing result.
PocURLFactory getURLFactory()
null
DisposablePocURLFactory getURLFactory(PocServerContext serverContext) throws StateException
PocURLFactory
must be disposed when not
used any longer.
serverContext
- the server context for the generated URLs, not
null
null
StateException
boolean resolve(StateHolderController ctrl, java.net.URI uri, java.lang.String verb, java.util.Map<java.lang.String,java.lang.String[]> params) throws ResolutionException, StateException
ctrl
- state to be modifieduri
- the POC URIverb
- the verbparams
- the parameters
true
if the resolution was successful, else
false
ResolutionException
StateException
void serveHeaders(DataSource aDataSource) throws java.io.IOException
DataSource
.
aDataSource
- the data source
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |