Apache CXF API

org.apache.cxf.jaxrs.provider
Class XSLTJaxbProvider

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider
      extended by org.apache.cxf.jaxrs.provider.AbstractJAXBProvider
          extended by org.apache.cxf.jaxrs.provider.JAXBElementProvider
              extended by org.apache.cxf.jaxrs.provider.XSLTJaxbProvider
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<Object>, javax.ws.rs.ext.MessageBodyWriter<Object>

@Provider
public class XSLTJaxbProvider
extends JAXBElementProvider


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.cxf.jaxrs.provider.AbstractJAXBProvider
AbstractJAXBProvider.CollectionWrapper, AbstractJAXBProvider.InTransformReader, AbstractJAXBProvider.JAXBCollectionWrapperReader, AbstractJAXBProvider.OutTransformWriter
 
Field Summary
 
Fields inherited from class org.apache.cxf.jaxrs.provider.AbstractJAXBProvider
BUNDLE, collectionContext, collectionContextClasses, inAppendMap, inDropElements, inElementsMap, jaxbElementClassMap, marshalAsJaxbElement, outAppendMap, outDropElements, outElementsMap, unmarshalAsJaxbElement
 
Constructor Summary
XSLTJaxbProvider()
           
 
Method Summary
protected  Templates createTemplates(String loc)
           
protected  Templates createTemplates(Templates templates, Map<String,Object> configuredParams, Map<String,String> outProps)
           
protected  Templates getInTemplates(javax.ws.rs.core.MediaType mt)
           
protected  Templates getOutTemplates(javax.ws.rs.core.MediaType mt)
           
 boolean inClassCanBeHandled(String className)
           
protected  boolean inTemplatesAvailable(javax.ws.rs.core.MediaType mt)
           
 boolean isReadable(Class<?> type, Type genericType, Annotation[] anns, javax.ws.rs.core.MediaType mt)
           
 boolean isWriteable(Class<?> type, Type genericType, Annotation[] anns, javax.ws.rs.core.MediaType mt)
           
protected  void marshalToOutputStream(javax.xml.bind.Marshaller ms, Object obj, OutputStream os, javax.ws.rs.core.MediaType mt)
           
protected  void marshalToWriter(javax.xml.bind.Marshaller ms, Object obj, javax.xml.stream.XMLStreamWriter writer, javax.ws.rs.core.MediaType mt)
           
 boolean outClassCanBeHandled(String className)
           
protected  boolean outTemplatesAvailable(javax.ws.rs.core.MediaType mt)
           
 void setInClassNames(List<String> classNames)
           
 void setInMediaTemplates(Map<String,String> map)
           
 void setInParameters(Map<String,Object> inParams)
           
 void setInProperties(Map<String,String> inProps)
           
 void setInTemplate(String loc)
           
 void setOutClassNames(List<String> classNames)
           
 void setOutMediaTemplates(Map<String,String> map)
           
 void setOutParameters(Map<String,Object> outParams)
           
 void setOutProperties(Map<String,String> outProps)
           
 void setOutTemplate(String loc)
           
 void setResolver(URIResolver resolver)
           
 void setSupportJaxbOnly(boolean support)
           
 void setSystemId(String system)
           
protected  Object unmarshalFromInputStream(javax.xml.bind.Unmarshaller unmarshaller, InputStream is, javax.ws.rs.core.MediaType mt)
           
protected  Object unmarshalFromReader(javax.xml.bind.Unmarshaller unmarshaller, javax.xml.stream.XMLStreamReader reader, javax.ws.rs.core.MediaType mt)
           
 
Methods inherited from class org.apache.cxf.jaxrs.provider.JAXBElementProvider
addAttachmentMarshaller, addAttachmentUnmarshaller, canBeReadAsJaxbElement, doUnmarshal, getStreamReader, getStreamWriter, marshal, marshal, marshalCollection, marshalCollectionMember, readFrom, setConsumeMediaTypes, setEnableBuffering, setMarshallerProperties, setMessageContext, setProduceMediaTypes, setSchemaHandler, setSchemaLocation, setSchemas, writeTo
 
Methods inherited from class org.apache.cxf.jaxrs.provider.AbstractJAXBProvider
checkAdapter, checkContentLength, clearContexts, convertToJaxbElementIfNeeded, convertToMapOfQNames, convertToQNamesMap, convertToSetOfQNames, createMarshaller, createNewReaderIfNeeded, createNewWriterIfNeeded, createTransformReaderIfNeeded, createTransformWriterIfNeeded, createUnmarshaller, createUnmarshaller, getActualType, getClassContext, getCollectionContext, getCollectionWrapperQName, getContext, getJAXBContext, getJaxbQName, getPackageContext, getSchema, getSize, getStackTrace, getStaxHandlerFromCurrentMessage, handleJAXBException, init, isSkipJaxbChecks, isSupported, isXmlRoot, objectFactoryOrIndexAvailable, setAttributesToElements, setCollectionWrapperMap, setCollectionWrapperName, setContext, setContextProperties, setExtraClass, setInAppendElements, setInDropElements, setInTransformElements, setJaxbElementClassMap, setJaxbElementClassNames, setMarshallAsJaxbElement, setOutAppendElements, setOutDropElements, setOutTransformElements, setSchema, setSchemaLocations, setSingleJaxbContext, setSkipJaxbChecks, setUnmarshallAsJaxbElement, setUnmarshallerProperties, setValidateBeforeWrite, setValidateOutput, setValidationHandler, validateObjectIfNeeded
 
Methods inherited from class org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider
getBus, getConsumeMediaTypes, getEnableBuffering, getEnableStreaming, getProduceMediaTypes, setBus, setEnableStreaming
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLTJaxbProvider

public XSLTJaxbProvider()
Method Detail

setSupportJaxbOnly

public void setSupportJaxbOnly(boolean support)

isReadable

public boolean isReadable(Class<?> type,
                          Type genericType,
                          Annotation[] anns,
                          javax.ws.rs.core.MediaType mt)
Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<Object>
Overrides:
isReadable in class AbstractJAXBProvider

isWriteable

public boolean isWriteable(Class<?> type,
                           Type genericType,
                           Annotation[] anns,
                           javax.ws.rs.core.MediaType mt)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Object>
Overrides:
isWriteable in class AbstractJAXBProvider

inTemplatesAvailable

protected boolean inTemplatesAvailable(javax.ws.rs.core.MediaType mt)

outTemplatesAvailable

protected boolean outTemplatesAvailable(javax.ws.rs.core.MediaType mt)

getInTemplates

protected Templates getInTemplates(javax.ws.rs.core.MediaType mt)

getOutTemplates

protected Templates getOutTemplates(javax.ws.rs.core.MediaType mt)

unmarshalFromInputStream

protected Object unmarshalFromInputStream(javax.xml.bind.Unmarshaller unmarshaller,
                                          InputStream is,
                                          javax.ws.rs.core.MediaType mt)
                                   throws javax.xml.bind.JAXBException
Overrides:
unmarshalFromInputStream in class JAXBElementProvider
Throws:
javax.xml.bind.JAXBException

unmarshalFromReader

protected Object unmarshalFromReader(javax.xml.bind.Unmarshaller unmarshaller,
                                     javax.xml.stream.XMLStreamReader reader,
                                     javax.ws.rs.core.MediaType mt)
                              throws javax.xml.bind.JAXBException
Overrides:
unmarshalFromReader in class JAXBElementProvider
Throws:
javax.xml.bind.JAXBException

marshalToWriter

protected void marshalToWriter(javax.xml.bind.Marshaller ms,
                               Object obj,
                               javax.xml.stream.XMLStreamWriter writer,
                               javax.ws.rs.core.MediaType mt)
                        throws Exception
Overrides:
marshalToWriter in class JAXBElementProvider
Throws:
Exception

marshalToOutputStream

protected void marshalToOutputStream(javax.xml.bind.Marshaller ms,
                                     Object obj,
                                     OutputStream os,
                                     javax.ws.rs.core.MediaType mt)
                              throws Exception
Overrides:
marshalToOutputStream in class JAXBElementProvider
Throws:
Exception

setOutTemplate

public void setOutTemplate(String loc)

setInTemplate

public void setInTemplate(String loc)

setInMediaTemplates

public void setInMediaTemplates(Map<String,String> map)

setOutMediaTemplates

public void setOutMediaTemplates(Map<String,String> map)

setResolver

public void setResolver(URIResolver resolver)

setSystemId

public void setSystemId(String system)

setInParameters

public void setInParameters(Map<String,Object> inParams)

setOutParameters

public void setOutParameters(Map<String,Object> outParams)

setInProperties

public void setInProperties(Map<String,String> inProps)

setOutProperties

public void setOutProperties(Map<String,String> outProps)

setInClassNames

public void setInClassNames(List<String> classNames)

inClassCanBeHandled

public boolean inClassCanBeHandled(String className)

setOutClassNames

public void setOutClassNames(List<String> classNames)

outClassCanBeHandled

public boolean outClassCanBeHandled(String className)

createTemplates

protected Templates createTemplates(Templates templates,
                                    Map<String,Object> configuredParams,
                                    Map<String,String> outProps)

createTemplates

protected Templates createTemplates(String loc)

Apache CXF API

Apache CXF