| Home > Java SE 6 > com.sun.xml.internal.ws.server > UnsupportedMediaException.java [ javadoc ] |
/* * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.xml.internal.ws.server; import com.sun.xml.internal.ws.util.exception.JAXWSExceptionBase; import com.sun.xml.internal.ws.resources.ServerMessages; import com.sun.istack.internal.NotNull; import com.sun.xml.internal.ws.api.pipe.Codec; import java.util.List; /** * {@link Codec} throws this exception when it doesn't understand request message's * Content-Type * @author Jitendra Kotamraju */ public final class UnsupportedMediaException extends JAXWSExceptionBase { public UnsupportedMediaException( @NotNull String contentType, List<String> expectedContentTypes) { super(ServerMessages.localizableUNSUPPORTED_CONTENT_TYPE(contentType, expectedContentTypes)); } public UnsupportedMediaException() { super(ServerMessages.localizableNO_CONTENT_TYPE()); } public UnsupportedMediaException(String charset) { super(ServerMessages.localizableUNSUPPORTED_CHARSET(charset)); } public String getDefaultResourceBundleName() { return "com.sun.xml.internal.ws.resources.server"; } }