org.mmbase.datatypes.processors
Class BinaryCommitProcessor

Package class diagram package BinaryCommitProcessor
java.lang.Object
  extended by 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

Field Summary
static String NOT
           
 
Constructor Summary
BinaryCommitProcessor()
           
 
Method Summary
 void commit(Node node, Field field)
          Will be called on commit of the node.
 void setContenttypeField(String fs)
           
 void setFilenameField(String fn)
           
 void setFilesizeField(String fs)
           
 void setItype(boolean i)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT

public static final String NOT
Constructor Detail

BinaryCommitProcessor

public BinaryCommitProcessor()
Method Detail

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