| |
|
| java.lang.Object com.sun.midp.content.ContentHandlerImpl javax.microedition.content.ContentHandlerServerImpl
Method Summary | |
public boolean | finish(Invocation invoc, int status) Finish this Invocation and set the status for the response.
The finish method may only be called when this
Invocation
has a status of ACTIVE or HOLD .
The content handler may modify the URL, type, action, or
arguments before invoking finish .
If the method
Invocation.getResponseRequired returns
true then the modified
values MUST be returned to the invoking application.
Parameters: invoc - the Invocation to finish Parameters: status - the new status of the Invocation. | public Invocation | getRequest(boolean wait) Gets the next Invocation request pending for this
ContentHandlerServer. | protected void | requestNotify() Notify the listener of a pending Request. | public void | setListener(RequestListener listener) Set the listener to be notified when a new request is
available for this content handler. |
ContentHandlerServerImpl | ContentHandlerServerImpl(ContentHandlerImpl handler)(Code) | | Construct an empty ContentHandlerServerImpl
that has the same fields as the existing handler.
Parameters: handler - the ContentHandlerImpl to clone |
finish | public boolean finish(Invocation invoc, int status)(Code) | | Finish this Invocation and set the status for the response.
The finish method may only be called when this
Invocation
has a status of ACTIVE or HOLD .
The content handler may modify the URL, type, action, or
arguments before invoking finish .
If the method
Invocation.getResponseRequired returns
true then the modified
values MUST be returned to the invoking application.
Parameters: invoc - the Invocation to finish Parameters: status - the new status of the Invocation. This MUST be eitherOK or CANCELLED . true if the MIDlet suite MUST voluntarily exit before the response can be returned to theinvoking application exception: IllegalArgumentException - if the newstatus of the Invocationis not OK or CANCELLED exception: IllegalStateException - if the currentstatus of theInvocation is not ACTIVE or HOLD exception: NullPointerException - if the invocation is null |
requestNotify | protected void requestNotify()(Code) | | Notify the listener of a pending Request.
|
setListener | public void setListener(RequestListener listener)(Code) | | Set the listener to be notified when a new request is
available for this content handler. The request MUST
be retrieved using
ContentHandlerServerImpl.getRequest .
Parameters: listener - the listener to register;null to remove the listener. |
Fields inherited from com.sun.midp.content.ContentHandlerImpl | final public static String[] ZERO_STRINGS(Code)(Java Doc)
|
|
|
|