com.sun.xml.ws.server
Class UnsupportedMediaException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.xml.ws.WebServiceException
                  extended by com.sun.xml.ws.util.exception.JAXWSExceptionBase
                      extended by com.sun.xml.ws.server.UnsupportedMediaException
All Implemented Interfaces:
Localizable, Serializable

public final class UnsupportedMediaException
extends JAXWSExceptionBase

Codec throws this exception when it doesn't understand request message's Content-Type

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.sun.xml.ws.util.localization.Localizable
NOT_LOCALIZABLE
 
Constructor Summary
UnsupportedMediaException()
           
UnsupportedMediaException(String contentType, List<String> expectedContentTypes)
           
 
Method Summary
 String getDefaultResourceBundleName()
          Gets the default resource bundle name for this kind of exception.
 
Methods inherited from class com.sun.xml.ws.util.exception.JAXWSExceptionBase
getArguments, getKey, getMessage, getResourceBundleName
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnsupportedMediaException

public UnsupportedMediaException(@NotNull
                                 String contentType,
                                 List<String> expectedContentTypes)

UnsupportedMediaException

public UnsupportedMediaException()
Method Detail

getDefaultResourceBundleName

public String getDefaultResourceBundleName()
Description copied from class: JAXWSExceptionBase
Gets the default resource bundle name for this kind of exception. Used for JAXWSExceptionBase.JAXWSExceptionBase(String, Object[]).

Specified by:
getDefaultResourceBundleName in class JAXWSExceptionBase