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: aStringOrSymbol
because we change class, the copy may not be identical

Usage example(s):

     CachedTypes := nil.
     self fromString:'text/html'


Instance protocol:

converting
o  asMimeType
(comment from inherited method)
return myself as a mimeType instance

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  isAudioType
return true, if I represent some audio type

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  isJSONType
return true, if I represent a JSON type

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  isSourceCodeType
return true, if I represent some programming language's 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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:47:17 GMT