org.apache.axis2.jaxws.message.databinding
Class JAXBBlockContext

java.lang.Object
  extended by org.apache.axis2.datasource.jaxb.JAXBDSContext
      extended by org.apache.axis2.jaxws.message.databinding.JAXBBlockContext

public class JAXBBlockContext
extends JAXBDSContext


Field Summary
 
Fields inherited from class org.apache.axis2.datasource.jaxb.JAXBDSContext
DEBUG_ENABLED
 
Constructor Summary
JAXBBlockContext(JAXBContext jaxbContext)
          "Dispatch" Constructor Use this full constructor when the JAXBContent is provided by the customer.
JAXBBlockContext(String contextPackage)
          Deprecated.  
JAXBBlockContext(TreeSet<String> packages)
          Slightly slower constructor
JAXBBlockContext(TreeSet<String> packages, String packagesKey)
          Full Constructor JAXBBlockContext (most performant)
 
Method Summary
protected  AttachmentMarshaller createAttachmentMarshaller(XMLStreamWriter writer)
          Create an AttachmentMarshaller to marshal MTOM/SWA Attachments
protected  AttachmentUnmarshaller createAttachmentUnmarshaller(org.apache.axiom.util.stax.xop.MimePartProvider mimePartProvider)
          Create an Attachment unmarshaller for unmarshalling MTOM/SWA Attachments
 ClassLoader getClassLoader()
           
 Message getMessage()
           
 MessageContext getMessageContext()
           
 void setMessage(Message message)
           
 
Methods inherited from class org.apache.axis2.datasource.jaxb.JAXBDSContext
getConstructionType, getContextPackages, getJAXBContext, getJAXBContext, getJAXBContext, getProcessType, isxmlList, marshal, setIsxmlList, setMessageContext, setProcessType, setWebServiceNamespace, unmarshal, unmarshalAsListOrArray, unmarshalByElement, unmarshalByType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBBlockContext

public JAXBBlockContext(TreeSet<String> packages,
                        String packagesKey)
Full Constructor JAXBBlockContext (most performant)

Parameters:
packages - Set of packages needed by the JAXBContext.

JAXBBlockContext

public JAXBBlockContext(TreeSet<String> packages)
Slightly slower constructor

Parameters:
packages -

JAXBBlockContext

public JAXBBlockContext(String contextPackage)
Deprecated. 

Normal Constructor JAXBBlockContext

Parameters:
contextPackage -

JAXBBlockContext

public JAXBBlockContext(JAXBContext jaxbContext)
"Dispatch" Constructor Use this full constructor when the JAXBContent is provided by the customer.

Parameters:
jaxbContext -
Method Detail

getMessage

public Message getMessage()

setMessage

public void setMessage(Message message)

createAttachmentMarshaller

protected AttachmentMarshaller createAttachmentMarshaller(XMLStreamWriter writer)
Description copied from class: JAXBDSContext
Create an AttachmentMarshaller to marshal MTOM/SWA Attachments

Overrides:
createAttachmentMarshaller in class JAXBDSContext
Returns:

createAttachmentUnmarshaller

protected AttachmentUnmarshaller createAttachmentUnmarshaller(org.apache.axiom.util.stax.xop.MimePartProvider mimePartProvider)
Description copied from class: JAXBDSContext
Create an Attachment unmarshaller for unmarshalling MTOM/SWA Attachments

Overrides:
createAttachmentUnmarshaller in class JAXBDSContext
Returns:
AttachmentUnmarshaller

getClassLoader

public ClassLoader getClassLoader()
Overrides:
getClassLoader in class JAXBDSContext

getMessageContext

public MessageContext getMessageContext()
Overrides:
getMessageContext in class JAXBDSContext


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.