com.sun.xml.ws.model
Class CheckedExceptionImpl

java.lang.Object
  extended by com.sun.xml.ws.model.CheckedExceptionImpl
All Implemented Interfaces:
CheckedException

public final class CheckedExceptionImpl
extends Object
implements CheckedException

CheckedException class. Holds the exception class - class that has public constructor public WrapperException()String message, FaultBean){} and method public FaultBean getFaultInfo();


Constructor Summary
CheckedExceptionImpl(JavaMethodImpl jm, Class exceptionClass, TypeInfo detail, ExceptionType exceptionType)
           
 
Method Summary
 XMLBridge getBond()
           
 com.sun.xml.bind.api.Bridge getBridge()
          Deprecated.  
 String getDefaultFaultAction()
           
 Class getDetailBean()
          The detail bean is serialized inside the detail entry in the SOAP message.
 TypeInfo getDetailType()
           
 Class getExceptionClass()
          The returned exception class would be userdefined or WSDL exception class.
 ExceptionType getExceptionType()
          Tells whether the exception class is a userdefined or a WSDL exception.
 String getFaultAction()
           
 String getMessageName()
          Gives the wsdl:portType/wsdl:operation/wsdl:fault@message value - that is the wsdl:message referenced by wsdl:fault
 AbstractSEIModelImpl getOwner()
          Gets the root SEIModel that owns this model.
 JavaMethod getParent()
          Gets the parent JavaMethod to which this checked exception belongs.
 void setFaultAction(String faultAction)
           
 void setMessageName(String messageName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckedExceptionImpl

public CheckedExceptionImpl(JavaMethodImpl jm,
                            Class exceptionClass,
                            TypeInfo detail,
                            ExceptionType exceptionType)
Parameters:
jm - JavaMethodImpl that throws this exception
exceptionClass - Userdefined or WSDL exception class that extends java.lang.Exception.
detail - detail or exception bean's TypeReference
exceptionType - either ExceptionType.UserDefined or
Method Detail

getOwner

public AbstractSEIModelImpl getOwner()
Description copied from interface: CheckedException
Gets the root SEIModel that owns this model.

Specified by:
getOwner in interface CheckedException

getParent

public JavaMethod getParent()
Description copied from interface: CheckedException
Gets the parent JavaMethod to which this checked exception belongs.

Specified by:
getParent in interface CheckedException

getExceptionClass

public Class getExceptionClass()
Description copied from interface: CheckedException
The returned exception class would be userdefined or WSDL exception class.

Specified by:
getExceptionClass in interface CheckedException
Returns:
the Class for this object

getDetailBean

public Class getDetailBean()
Description copied from interface: CheckedException
The detail bean is serialized inside the detail entry in the SOAP message. This must be known to the JAXBContext inorder to get marshalled/unmarshalled.

Specified by:
getDetailBean in interface CheckedException
Returns:
the detail bean

getBridge

public com.sun.xml.bind.api.Bridge getBridge()
Deprecated. 

Description copied from interface: CheckedException
Gives the Bridge associated with the detail

Specified by:
getBridge in interface CheckedException

getBond

public XMLBridge getBond()

getDetailType

public TypeInfo getDetailType()

getExceptionType

public ExceptionType getExceptionType()
Description copied from interface: CheckedException
Tells whether the exception class is a userdefined or a WSDL exception. A WSDL exception class follows the pattern defined in JSR 224. According to that a WSDL exception class must have: public WrapperException()String message, FaultBean){} and accessor method public FaultBean getFaultInfo();

Specified by:
getExceptionType in interface CheckedException

getMessageName

public String getMessageName()
Description copied from interface: CheckedException
Gives the wsdl:portType/wsdl:operation/wsdl:fault@message value - that is the wsdl:message referenced by wsdl:fault

Specified by:
getMessageName in interface CheckedException

setMessageName

public void setMessageName(String messageName)

getFaultAction

public String getFaultAction()

setFaultAction

public void setFaultAction(String faultAction)

getDefaultFaultAction

public String getDefaultFaultAction()


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.