|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.search.DefaultMediaType
public class DefaultMediaType
Provides a default implementation for the MediaType
interface.
Constructor Summary | |
---|---|
DefaultMediaType(java.lang.String realm,
java.lang.String name)
|
Method Summary | |
---|---|
void |
add(java.lang.String extension)
Adds extension to the list of extensions. |
java.lang.String |
getName()
Returns the name of the media type that is shown to the user. |
java.lang.String |
getRealm()
Returns the realm. |
boolean |
matches(java.lang.String filename)
Returns true if filename is of this media type. |
java.lang.String |
toString()
Returns the value of getName() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultMediaType(java.lang.String realm, java.lang.String name)
Method Detail |
---|
public void add(java.lang.String extension)
extension
to the list of extensions.
public java.lang.String getName()
getName
in interface MediaType
public java.lang.String getRealm()
getRealm
in interface MediaType
public boolean matches(java.lang.String filename)
filename
is of this media type.
matches
in interface MediaType
public java.lang.String toString()
getName()
.
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |