WARenderingContext


Seaside-Rendering

Comment:



Hierarchy:

ProtoObject
Object
WARenderingContext

Summary:

instance variables:

actionUrl callbacks count document mode request response

methods:

instance class
accessing callbacks documents initialize-release modes as yet unclassified

Detail:

instance variables:

actionUrl
inferredType:
UndefinedObject
callbacks
InitialValue:
a Dictionary()
inferredType:
Dictionary
count
InitialValue:
1
inferredType:
SmallInteger
document
inferredType:
UndefinedObject
mode
inferredType:
UndefinedObject
request
inferredType:
UndefinedObject
response
inferredType:
UndefinedObject

instance methods:

accessing
actionUrl

	"Answer the value of actionUrl"

	^ actionUrl
actionUrl: anObject

	"Set the value of actionUrl"

	actionUrl _ anObject
document

	"Answer the value of document"

	^ document
document: anObject

	"Set the value of document"

	document _ anObject
request

	^ request
request: aRequest

	request _ aRequest
response

	^ response
response: aResponse

	response _ aResponse

callbacks
advanceKey

	| key |
	key _ self nextKey.
	self increaseKey.
	^ key
callbackAt: aString

	^ callbacks at: aString
callbackStreamForRequest: aRequest

	^ WACallbackStream callbacks: callbacks request: aRequest
callbacksFor: anObject

	^ WACallbackRegistry context: self owner: anObject
increaseKey

	count _ count + 1
nextKey

	^ count asString
storeCallback: aCallback
	
	| key |
	key _ self advanceKey.
	callbacks at: (aCallback convertKey: key) put: aCallback.
	^ key

documents
registry

	^ WACurrentSession value application
urlForDocument: anObject

	^ self urlForDocument: anObject mimeType: nil
urlForDocument: anObject mimeType: mimeString

	^ self urlForDocument: anObject mimeType: mimeString fileName: nil
urlForDocument: anObject mimeType: mimeType fileName: fileName

	^ (self registry urlForRequestHandler:
		(WADocumentHandler
			document: anObject
			mimeType: mimeType
			fileName: fileName)) asString

initialize-release
initialize

	count _ 1.
	callbacks _ Dictionary new

modes
clearMode

	mode _ nil
debugMode

	mode _ #debug
isDebugMode

	^ mode = #debug

class methods:

as yet unclassified
new

	^ self basicNew initialize

^top


- made by Dandelion -