This is a common base class for the server-side implementations of the
communication system between the client code (compiled with GWT into
JavaScript) and the server side components. Its client side counterpart
is ApplicationConnection.
A server side component sends its state to the client in a paint
request (see IPaintable and PaintTarget on
the server side). The client widget receives these paint requests as
calls to muntjac.terminal.gwt.client.IPaintable.updateFromUIDL.
The client component communicates back to the server by sending a list of
variable changes (see ApplicationConnection.updateVariable and VariableOwner.changeVariables).
|
|
__init__(self,
application)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
doHandleSimpleMultipartFileUpload(self,
request,
response,
streamVariable,
variableName,
owner,
boundary)
Method used to stream content from a multipart request (either from
servlet or portlet request) to given StreamVariable. |
source code
|
|
|
|
doHandleXhrFilePost(self,
request,
response,
streamVariable,
variableName,
owner,
contentLength)
Used to stream plain file post (aka XHR2.post(File)) |
source code
|
|
|
|
streamToReceiver(self,
inputStream,
streamVariable,
filename,
typ,
contentLength)
Returns:
true if the streamvariable has informed that the terminal can forget
this variable |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
| highlightPaintable(self,
highLightedPaintable2) |
source code
|
|
|
|
| printHighlightedComponentHierarchy(self,
sb,
component) |
source code
|
|
|
|
|
|
|
| writeUidlResponce(self,
callback,
repaintAll,
outWriter,
window,
analyzeLayouts) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unregisterPaintable(self,
p)
Called when communication manager stops listening for repaints for
given component. |
source code
|
|
|
|
handleVariables(self,
request,
response,
callback,
application2,
window)
If this method returns false, something was submitted that we did not
expect; this is probably due to the client being out-of-sync and
sending variable changes for non-existing pids |
source code
|
|
|
|
| handleVariableBurst(self,
source,
app,
success,
burst) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleChangeVariablesError(self,
application,
owner,
e,
m)
Handles an error (exception) that occurred when processing variable
changes from the client or a failure of a file upload. |
source code
|
|
|
|
| convertVariableValue(self,
variableType,
strValue) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
decodeVariableValue(self,
encodedValue)
Decode encoded burst, record, field and array item separator
characters in a variable value String received from the client. |
source code
|
|
|
|
printLocaleDeclarations(self,
outWriter)
Prints the queued (pending) locale definitions to a PrintWriter in a
(UIDL) format that can be sent to the client and used there in
formatting dates, times etc. |
source code
|
|
|
|
| doGetApplicationWindow(self,
request,
callback,
application,
assumedWindow) |
source code
|
|
|
|
|
|
|
|
|
|
openJsonMessage(self,
outWriter,
response)
Writes the opening of JSON message to be sent to client. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
paintablePainted(self,
paintable)
Internally mark a IPaintable as painted and start collecting new
repaint requests for it. |
source code
|
|
|
|
|
|
|
generateLocale(self,
value)
Constructs a Locale instance to be sent to the client based on a
short locale description string. |
source code
|
|
|
|
|
|
|
|
|
|
| getStreamVariableTargetUrl(self,
owner,
name,
value) |
source code
|
|
|
|
|
|
Inherited from paintable.IPaintable:
addCallback,
addListener,
getDebugId,
paint,
removeCallback,
removeListener,
requestRepaint,
requestRepaintRequests,
setDebugId
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|