jACOB 2.7 API Documentation.

de.tif.jacob.entrypoint
Class CmdEntryPointContext

java.lang.Object
  extended by SessionContext
      extended by de.tif.jacob.entrypoint.CmdEntryPointContext

public class CmdEntryPointContext
extends SessionContext


Field Summary
static java.lang.String RCS_ID
           
static java.lang.String RCS_REV
           
 
Constructor Summary
CmdEntryPointContext(Session session, IApplicationDefinition app, IUser user, java.io.OutputStream stream)
           
 
Method Summary
 Session getSession()
           
 java.io.OutputStream getStream()
          Return the outputstream of the request.
 void registerForSession(ManagedResource resource)
          There is no session for a CmdEntryPointContext.
 void registerForWindow(ManagedResource resource)
          There is no window for a CmdEntryPointContext.
 void setPropertyForSession(java.lang.Object key, java.lang.Object value)
          There is no session for a CmdEntryPointContext.
 void setPropertyForWindow(java.lang.Object key, java.lang.Object value)
          There is no window for a CmdEntryPointContext.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final transient java.lang.String RCS_ID
See Also:
Constant Field Values

RCS_REV

public static final transient java.lang.String RCS_REV
See Also:
Constant Field Values
Constructor Detail

CmdEntryPointContext

public CmdEntryPointContext(Session session,
                            IApplicationDefinition app,
                            IUser user,
                            java.io.OutputStream stream)
Method Detail

getSession

public Session getSession()

registerForSession

public void registerForSession(ManagedResource resource)
There is no session for a CmdEntryPointContext. The CmdEntryPointContext is only valid for one request. Redirect the registration to the registerForRequest(...) life cycle handler.

Call Context.getCurrent().unregister(..) if you have destroyed the resource manually. If you don't call it, the resource will be released twice.

Parameters:
resource - The resource to manage.

registerForWindow

public void registerForWindow(ManagedResource resource)
There is no window for a CmdEntryPointContext. The CmdEntryPointContext is only valid for one request. Redirect the registration to the registerForRequest(...) life cycle handler.

Call Context.getCurrent().unregister(..) if you have destroyed the resource manually. If you don't call it, the resource will be released twice.

Parameters:
resource - The resource to manage.

setPropertyForSession

public void setPropertyForSession(java.lang.Object key,
                                  java.lang.Object value)
There is no session for a CmdEntryPointContext. The CmdEntryPointContext is only valid for one request. Redirect the property to the setPropertyForRequest(key,value) life cycle handler.
Für jeden Aufruf eines Entrypoints wird eine neue Session angelegt, da der Client eventuell keine Cookies unterstützt (z.b. ein Command line tool)


setPropertyForWindow

public void setPropertyForWindow(java.lang.Object key,
                                 java.lang.Object value)
There is no window for a CmdEntryPointContext. The CmdEntryPointContext is only valid for one request. Redirect the property to the setPropertyForRequest(key,value) life cycle handler.


getStream

public final java.io.OutputStream getStream()
Return the outputstream of the request. Stream the content (XML, PDF,...) to this OutputStream.

Returns:
Returns the stream.

jACOB 2.7 API Documentation.