classafPillow::PageMeta
sys::Obj afPillow::PageMeta
(Service) - Returns details about the Pillow page currently being rendered.
PageMeta objects may also be created by the Pages service.
- contentType
MimeType contentType()Returns the
Content-Typeproduced by this page.Returns PillowConfigIds#defaultContextType if it can not be determined.
- eventMethods
Method[] eventMethods()Returns all the event methods on the page.
- eventUrl
Uri eventUrl(Str eventName, Obj?[]? eventContext := null)Returns a URI for a given event - use to create client side URIs to call the event.
- httpMethod
Str httpMethod()Returns the HTTP method this page responds to.
- isWelcomePage
Bool isWelcomePage()Returns
trueif the page is a welcome page.- pageContext
Obj?[] pageContext()Returns the context used to initialise this page.
- pageType
Type pageType()Returns the page that this Meta object wraps.
- pageUrl
Uri pageUrl()Returns a URI that can be used to render the given page. The URI takes into account:
- Any welcome URI -> home page conversions
- The context used to render this page
- Any parent
WebMods
- toStr
virtual override Str toStr()Returns
pageUrl.- withContext
PageMeta withContext(Obj?[]? pageContext)Returns a new
PageMetawith the given page context.