- public class Filetype
- extends klentry
Represents a file type. Contains all the information vqServer needs to
handle files of a particular type.
Warning: the key field is used to store the file
extension associated with the file type.
Filetype()
- Creates an empty unlinked file type entry.
getExt()
- Returns the file extension associated with the file type.
getFilter()
- Returns the (list of) filter servlet specification(s) associated with the file type.
getIcon()
- Returns the alias of the icon associated with the file type.
getInterpreter()
- Returns the CGI Script interpreter associated with the file type.
getMimeType()
- Returns the MIME type associated with the file type.
save(vqos)
- Saves the filetype to the output stream specified.
setExt(String)
- Sets the file extension.
setFilter(String)
- Sets the (list of) filter servlet specification(s) associated with the file type.
setIcon(String)
- Sets the alias of the icon associated with the file type.
setInterpreter(String)
- Sets the CGI Script interpreter associated with the file type.
setMimeType(String)
- Sets the MIME type.
Filetype
public Filetype()
Creates an empty unlinked file type entry.
save
public void save(vqos os) throws java.io.IOException
Saves the filetype to the output stream specified.
- Overrides:
- save in class klentry
getExt
public java.lang.String getExt()
Returns the file extension associated with the file type.
setExt
public void setExt(java.lang.String theExt)
Sets the file extension.
Call Filetypes.remove(Filetype) and Filetypes.add(Filetype)
after using this method to maintain ordering of the Filetypes list.
getMimeType
public java.lang.String getMimeType()
Returns the MIME type associated with the file type.
setMimeType
public void setMimeType(java.lang.String theType)
Sets the MIME type.
getFilter
public java.lang.String getFilter()
Returns the (list of) filter servlet specification(s) associated with the file type.
setFilter
public void setFilter(java.lang.String theFilter)
Sets the (list of) filter servlet specification(s) associated with the file type.
getInterpreter
public java.lang.String getInterpreter()
Returns the CGI Script interpreter associated with the file type.
setInterpreter
public void setInterpreter(java.lang.String theInterpreter)
Sets the CGI Script interpreter associated with the file type.
getIcon
public java.lang.String getIcon()
Returns the alias of the icon associated with the file type.
setIcon
public void setIcon(java.lang.String theIcon)
Sets the alias of the icon associated with the file type.