eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'MIMETypes::MIMEType':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: MIMEType (private in MIMETypes

This class is only visible from within MIMETypes.

Inheritance:

   Object
   |
   +--Collection
      |
      +--SequenceableCollection
         |
         +--ArrayedCollection
            |
            +--UninterpretedBytes
               |
               +--CharacterArray
                  |
                  +--String
                     |
                     +--ImmutableString
                        |
                        +--MIMETypes::MIMEType

Package:
stx:libview2
Category:
Net-Communication-Support
Owner:
MIMETypes

Description:


like a string, but knows that it represents a mimeType.
mimetypes are singletons, remembered in the class variable CachedTypes.


Class protocol:

instance creation
o  fromString: aString
CachedTypes := nil.
self fromString:'text/html'


Instance protocol:

converting
o  asMimeType

queries
o  fileTypeInfo
(MIMETypes mimeTypeFromString:'application/x-smalltalk-source') fileTypeInfo

o  isArchive
return true, if I represent an archive type (such as zip or tar)

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  isArchiveType
return true, if I represent an archive type (such as zip or tar)

o  isBinary
return true, if I represent a binary (non-text) type

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  isBinaryType
return true, if I represent a binary (non-text) type

o  isCHeaderType
return true, if I represent a C header file type

o  isCPPSourceType
return true, if I represent a C++ sourcecode type

o  isCSourceType
return true, if I represent a C sourcecode type

o  isHtml
return true, if I represent the html text type

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  isHtmlType
return true, if I represent the html text type

o  isImage
return true, if I represent an image type (such as gif or jpg)

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  isImageType
return true, if I represent an image type (such as gif or jpg)

o  isPdf
return true, if I represent the pdf type

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  isPdfType
return true, if I represent the pdf type

o  isSmalltalkSource
return true, if I represent the smalltalk sourcecode type

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  isSmalltalkSourceType
return true, if I represent the smalltalk sourcecode type

o  isTextType
return true, if I represent some text type

o  isXml
return true, if I represent the xml text type

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  isXmlType
return true, if I represent the xml text type

o  suffix
(MIMETypes mimeTypeFromString:'application/x-expecco-testsuite') suffix



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sat, 27 Apr 2024 01:03:59 GMT