public class InvokeState
extends FixedData
ContentHandler
interface, this
class will be interesting to you because of the getXXX methods. The
setXXX methods have been marked as "semi-protected"; they are intended
for the implementation of server listeners.ContentHandler
Constructor and Description |
---|
InvokeState() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentEncoding()
Returns the encoding of the content.
|
ContentInfo |
getContentInfo()
Returns the ContentInfo object.
|
java.lang.String |
getContentType()
Returns the content type of the input posted to this service.
|
static iContext |
getCurrentIContext()
Returns the client iContext for this session.
|
static java.util.Locale |
getCurrentLocale()
Returns the client locale for this session.
|
static NSService |
getCurrentService()
Returns the service info of the current invoke state.
|
static Session |
getCurrentSession()
Returns the session of the current invoke state.
|
static java.net.Socket |
getCurrentSocket()
Returns the socket of the current invoke state.
|
static InvokeState |
getCurrentState()
Returns the current thread's invoke state.
|
static User |
getCurrentUser()
Returns the user of the current invoke state.
|
iContext |
getIContext()
Returns the iContext associated with this InvokeState.
|
iContext |
getIContextPolicy()
Returns the iContext policy for this session or service.
|
Values |
getInput()
Returns the input to this service.
|
java.util.Locale |
getLocale()
Deprecated.
Replaced by getSessionIContext
|
IData |
getPipeline() |
ProtocolInfoIf |
getProtocolInfoIf()
Accessor to the ProtocolInfoIf reference.
|
NSService |
getService()
Returns information about the service being invoked.
|
Session |
getSession()
Returns the session of the invoking thread.
|
iContext |
getSessionIContext()
Returns the iContext from the session, not from the InvokeState.
|
User |
getUser()
Returns the user associated with this invocation.
|
java.lang.String |
getUserAgent()
Returns the user agent (e.g.
|
static java.lang.Object[][] |
InvokeState_schema() |
void |
setPipeline(IData pipeline) |
static void |
setSessionUser(User newuser)
Set the user in the current InvokeState.
|
java.lang.String |
toString() |
public static java.lang.Object[][] InvokeState_schema()
public User getUser()
public java.lang.String getUserAgent()
public Session getSession()
public NSService getService()
public Values getInput()
public IData getPipeline()
public java.lang.String getContentType()
public ContentInfo getContentInfo()
Note: After you execute getContentInfo, you can use toString() on the returned ContentInfo object to get a String containing the content type of the request.
public java.lang.String getContentEncoding()
public java.util.Locale getLocale()
public iContext getIContext()
This method always returns a concrete iContext. It does not return an abstract one. To get the policy associated with the service, use getIContextPolicy.
public iContext getIContextPolicy()
public iContext getSessionIContext()
public void setPipeline(IData pipeline)
public static void setSessionUser(User newuser)
newuser
- The user to become.public ProtocolInfoIf getProtocolInfoIf()
public static InvokeState getCurrentState()
public static java.net.Socket getCurrentSocket()
public static Session getCurrentSession()
public static java.util.Locale getCurrentLocale()
public static iContext getCurrentIContext()
public static NSService getCurrentService()
Note: After you execute getCurrentService, you can use toString() on the returned NSService object to get a String containing the service's fully qualified service name (i.e., folder:serviceName).
public static User getCurrentUser()
public java.lang.String toString()