Tree PREV CLASS NEXT CLASS SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD com.ibm.portal.resolver.accessors
Interface ContextAccessor
- All Superinterfaces:
- DigestProvider
- All Known Subinterfaces:
- PortletContextAccessor
public interface ContextAccessor- extends DigestProvider
Provides information about the current context (e.g. request) that a PocService operates in.
- Since:
- 6.1.0
Method Summary java.lang.String getDigest()
Return a string that represents a hash over the request headers that might influence the responses (independent of the request URL).java.lang.String getDigest(DataSource dataSource)
Return the digest for the given data source.Dispatcher getDispatcher()
Return a dispatcher for the current context that can be used to dispatch to a servlet or a JSPjava.lang.String getNonce()
Return a nonce for the current requestjavax.ccpp.Profile getProfile()
Return the CCPP profile of the current scopeStateManagerService getStateManagerService()
Provides access to the StateManagerService in the context of the POC service.boolean isProtected()
Check if there is either a WAS security context or a portal security context.boolean isSecure()
Checks wether the call was made via a secure channel
Method Detail getDigest
java.lang.String getDigest()
- Returns a string that represents a hash over the request headers that might influence the responses (independent of the request URL). The digest string will only contain characters that are URL safe.
- Specified by:
- getDigest in interface DigestProvider
- Returns:
- the hash string for this request, can be null if the digest could not be computed
getDigest
java.lang.String getDigest(DataSource dataSource)
- Returns the digest for the given data source.
- Parameters:
- dataSource - the data source, not null.
- Returns:
- the digest or null if it could not be computed
- Since:
- 7.0
getDispatcher
Dispatcher getDispatcher()
- Returns a dispatcher for the current context that can be used to dispatch to a servlet or a JSP
- Returns:
- the dispatcher, not null
- Since:
- 8.0
getNonce
java.lang.String getNonce()
- Returns a nonce for the current request
- Returns:
- the nonce for the request, may return null
- Since:
- 8.5
getProfile
javax.ccpp.Profile getProfile()
- Returns the CCPP profile of the current scope
- Returns:
- the Profile not null
getStateManagerService
StateManagerService getStateManagerService()
- Provides access to the StateManagerService in the context of the POC service. The resulting service is valid as long as the POC service is valid and should NOT be disposed.
- Returns:
- the state manager service, not null
- Since:
- 7.0
isProtected
boolean isProtected()
- Checks if there is either a WAS security context or a portal security context.
- Returns:
- true if there exists such a context, else false
- Since:
- 6.1.0.3
isSecure
boolean isSecure()
- Checks wether the call was made via a secure channel
- Returns:
- true if the call was made via such a channel, else false
- Since:
- 6.1.0.3
Tree PREV CLASS NEXT CLASS SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD