Class SIPJaxbDataFormat

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.converter.jaxb.JaxbDataFormat
one.x1f.sip.foundation.soap.declarative.connector.SIPJaxbDataFormat
All Implemented Interfaces:
AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.DataFormat, org.apache.camel.spi.DataFormatContentTypeHeader, org.apache.camel.spi.DataFormatName, org.apache.camel.spi.HasCamelContext, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class SIPJaxbDataFormat extends org.apache.camel.converter.jaxb.JaxbDataFormat
Custom implementation of JaxbDataFormat which supports payload as stream
  • Field Summary

    Fields inherited from class org.apache.camel.support.service.BaseService

    BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
  • Constructor Summary

    Constructors
    Constructor
    Description
    SIPJaxbDataFormat(jakarta.xml.bind.JAXBContext jaxbContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setCamelContext(org.apache.camel.CamelContext camelContext)
     
    unmarshal(org.apache.camel.Exchange exchange, Object body)
     

    Methods inherited from class org.apache.camel.converter.jaxb.JaxbDataFormat

    createContext, createMarshaller, createUnmarshaller, doStart, doStop, getAccessExternalSchemaProtocols, getCamelContext, getContext, getContextPath, getDataFormatName, getEncoding, getJaxbProviderProperties, getNamespacePrefix, getNoNamespaceSchemaLocation, getPartClass, getPartNamespace, getSchema, getSchemaFactory, getSchemaLocation, getSchemaSeverityLevel, getXmlStreamWriterWrapper, isContentTypeHeader, isContextPathIsClassName, isFilterNonXmlChars, isFragment, isIgnoreJAXBElement, isMustBeJAXBElement, isObjectFactory, isPrettyPrint, marshal, needFiltering, setAccessExternalSchemaProtocols, setContentTypeHeader, setContext, setContextPath, setContextPathIsClassName, setEncoding, setFilterNonXmlChars, setFragment, setIgnoreJAXBElement, setJaxbProviderProperties, setMustBeJAXBElement, setNamespacePrefix, setNoNamespaceSchemaLocation, setObjectFactory, setPartClass, setPartNamespace, setPrettyPrint, setSchema, setSchemaFactory, setSchemaLocation, setSchemaSeverityLevel, setXmlStreamWriterWrapper, unmarshal

    Methods inherited from class org.apache.camel.support.service.BaseService

    build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.camel.Service

    build, close, init, start, stop

    Methods inherited from interface org.apache.camel.ShutdownableService

    shutdown

    Methods inherited from interface org.apache.camel.StatefulService

    getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending

    Methods inherited from interface org.apache.camel.SuspendableService

    isSuspended, resume, suspend
  • Constructor Details

    • SIPJaxbDataFormat

      public SIPJaxbDataFormat(jakarta.xml.bind.JAXBContext jaxbContext)
  • Method Details

    • setCamelContext

      public void setCamelContext(org.apache.camel.CamelContext camelContext)
      Specified by:
      setCamelContext in interface org.apache.camel.CamelContextAware
      Overrides:
      setCamelContext in class org.apache.camel.converter.jaxb.JaxbDataFormat
    • unmarshal

      public Object unmarshal(org.apache.camel.Exchange exchange, Object body) throws Exception
      Specified by:
      unmarshal in interface org.apache.camel.spi.DataFormat
      Overrides:
      unmarshal in class org.apache.camel.converter.jaxb.JaxbDataFormat
      Throws:
      Exception