ProtoObjectObjectWARequestHandlerWAEntryPointWARegistryWAApplication
| configuration | libraries | sessionClass |
| instance | class |
|---|---|
| accessing basic configuration preferences request handling | as yet unclassified |
| configuration |
|---|
|
|
| libraries |
|---|
|
|
| sessionClass |
|---|
|
| accessing |
|---|
| baseUrl |
^ super baseUrl port: (self preferenceAt: #serverPort); hostname: (self preferenceAt: #serverHostname); scheme: (self preferenceAt: #serverProtocol); yourself |
| configurationComponent |
^ WAApplicationEditor new application: self |
| defaultLibraries |
^ Array with: WAStandardScripts with: WAStandardStyles |
| libraries |
^ libraries ifNil: [libraries _ OrderedCollection withAll: self defaultLibraries] |
| name |
| segments | segments _ basePath findTokens: '/'. ^ segments isEmpty ifTrue: [''] ifFalse: [segments last ] |
| basic configuration |
|---|
| sessionClass |
^ configuration valueAt: #sessionClass |
| preferences |
|---|
| configuration |
^ configuration ifNil: [configuration _ WAUserConfiguration new addAncestor: self defaultAncestor] |
| defaultAncestor |
"yes, breaking layering" ^ WARenderLoopConfiguration localConfiguration |
| preferenceAt: aSymbol |
^ self configuration valueAt: aSymbol |
| preferenceAt: aSymbol put: anObject |
^ self configuration valueAt: aSymbol put: anObject |
| request handling |
|---|
| handleDefaultRequest: aRequest |
|session| session _ self sessionClass application: self. ^ session handleRequest: aRequest |
| updateRoot: anHtmlRoot |
anHtmlRoot title = '' ifTrue: [anHtmlRoot title: self basePath]. self libraries do: [:ea | ea updateRoot: anHtmlRoot] |
| as yet unclassified |
|---|
| description |
^ 'Seaside Application' |
| path: pathString |
^ self new basePath: pathString |