org.xnap.search
Class AnythingMediaType

java.lang.Object
  extended by org.xnap.search.AnythingMediaType
All Implemented Interfaces:
java.io.Serializable, MediaType

public class AnythingMediaType
extends java.lang.Object
implements MediaType, java.io.Serializable

Provides the media type that matches any file.

See Also:
Serialized Form

Constructor Summary
AnythingMediaType()
           
 
Method Summary
 java.lang.String getName()
          Returns the translation of "Default".
 java.lang.String getRealm()
          Returns "anything".
 boolean matches(java.lang.String filename)
          Always returns true;
 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

AnythingMediaType

public AnythingMediaType()
Method Detail

getName

public java.lang.String getName()
Returns the translation of "Default".

Specified by:
getName in interface MediaType

getRealm

public java.lang.String getRealm()
Returns "anything".

Specified by:
getRealm in interface MediaType

matches

public boolean matches(java.lang.String filename)
Always returns true;

Specified by:
matches in interface MediaType

toString

public java.lang.String toString()
Returns the value of getName().

Overrides:
toString in class java.lang.Object


Copyright © 2001-2005 XNap Team. All Rights Reserved.