org.mmbase.datatypes.processors
Class BinaryCommitProcessor
java.lang.Object
org.mmbase.datatypes.processors.BinaryCommitProcessor
- All Implemented Interfaces:
- Serializable, CommitProcessor
public class BinaryCommitProcessor
- extends Object
- implements CommitProcessor
Used as 'commitprocessor' on the 'binaries'. This automaticly fills associated 'filename',
'filesize' and 'mimetype' fields.
- Since:
- MMBase-1.9.1
- Version:
- $Id: BinaryCommitProcessor.java 44742 2011-01-12 08:55:24Z michiel $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NOT
public static final String NOT
BinaryCommitProcessor
public BinaryCommitProcessor()
setFilenameField
public void setFilenameField(String fn)
setFilesizeField
public void setFilesizeField(String fs)
setContenttypeField
public void setContenttypeField(String fs)
setItype
public void setItype(boolean i)
setSetContentTypeIfNotRecognized
public void setSetContentTypeIfNotRecognized(boolean s)
- If this is true (default), then the content type will be set to 'application/octet-stream' if
nothing explicit could be found.
- Since:
- MMBase-1.9.2
commit
public void commit(Node node,
Field field)
- Description copied from interface:
CommitProcessor
- Will be called on commit of the node.
- Specified by:
commit in interface CommitProcessor
MMBase2 Bridge 2.0-SNAPSHOT - 2013-03-30T06:34