jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "nt:resource" by JukkaZitting
Date Mon, 03 Apr 2006 17:13:02 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The following page has been changed by JukkaZitting:
http://wiki.apache.org/jackrabbit/nt%3aresource

New page:
Binary resource.

== Definition ==

{{{
[nt:resource] > mix:referenceable
- jcr:encoding     (STRING)
- jcr:mimeType     (STRING) mandatory
- jcr:data         (BINARY) mandatory primary
- jcr:lastModified (DATE)   mandatory IGNORE
}}}

== Description ==

An nt:resource child node is normally used instead of a plain binary property when more resource
metadata is required.

The {{{jcr:mimeType}}} property specifies the [http://www.iana.org/assignments/media-types/
content type] of the resource, and the optional {{{jcr:encoding}}} specifies the [http://www.iana.org/assignments/character-sets
character encoding] of text-based content types.

The resource content is stored as a binary stream in the {{{jcr:data}}} property that is also
the primary property of the node. The {{{jcr:lastModified}}} should be updated whenever the
resource is modified.

== Related node types ==

 * nt:resource is often used as the {{{jcr:content}}} child of a ["nt:file"] node

== Comments and questions ==

Mime
View raw message