Hi Jörn,

Jörn Nettingsmeier schrieb:

> our current resource type configuration syntax is a little confusing imho:
> 
> <schema src="foo" language=""/>
> 
> <link-rewrite xpath="/foo/bar"/>
> 
> <sample-name name="foo" mime-type="application/bar">foo://bar</sample-name>
> or
> <samples uri="foo://bar.xml"/>
> 
> <format name="foo" uri="foo://bar"/>
> 
> <expires secords="42"/>
> 
> first of all, what does "expires" mean? the xhtml doctype gives this
> very helpful comment:
> <!-- Default time in seconds until the resource-type has expired -->
> does the resource type self-destruct one hour after the servlet engine
> has started? are documents older than one hour automatically deleted?
> please enlighten me...

it's the expiration time for caching the corresponding pages.

svn praises Doug Chestnut for this method:

557603    andreas      * Returns the date at which point the requested
resource is considered
557603    andreas      * expired
423080   chestnut      * @return a string in RFC 1123 date format
422950   chestnut      */
423122   chestnut     Date getExpires();

Doug, maybe you'd like to add some docs? I filed a bug:
http://issues.apache.org/bugzilla/show_bug.cgi?id=43097


> next, we have three ways of specifying a uri: by an attribute "src", an
> attribute "uri" or by element content.

I'd prefer "uri" because it implies the type of the attribute.


> third, "sample-name" is not a very lucky choice imho. clearly, it's not
> a name for a sample that's being defined, but the sample itself.

+1 for <sample>


> then, remind me again of the meaning of "link-rewrite"... is it still
> necessary after the Grand Proxying Rewrite of 2007? if yes, can it be
> folded into proxy or uuid2uri rewriting?

I think this is now handled by the configuration of the various link
rewriting transformers (which could be the worse option), but I'll take
a closer look tomorrow.


> there's a (trivial) patch in my queue that cleans up the syntax of
> resource type declarations a bit. i'd like to sneak it in before 2.0,
> but it will mean people have to change their custom resource types a
> little. any objections?

Would you mind attaching the patch so that we can take a look? TIA!

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to