@Produces(value={"application/xml","application/*+xml","text/xml","text/html"}) @Consumes(value={"application/xml","application/*+xml","text/xml","text/html"}) @Provider public class XSLTJaxbProvider<T> extends JAXBElementProvider<T>
AbstractJAXBProvider.CollectionWrapper, AbstractJAXBProvider.JAXBCollectionWrapperReader
classContexts, collectionContextClasses, inAppendMap, inDropElements, inElementsMap, jaxbElementClassMap, marshalAsJaxbElement, NS_MAPPER_PROPERTY_RI, NS_MAPPER_PROPERTY_RI_INT, outAppendMap, outDropElements, outElementsMap, packageContexts, unmarshalAsJaxbElement, xmlTypeAsJaxbElementOnly
BUNDLE
Constructor and Description |
---|
XSLTJaxbProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAttachmentMarshaller(Marshaller ms) |
protected Templates |
createTemplates(String loc) |
protected Templates |
createTemplates(Templates templates,
Map<String,Object> configuredParams,
Map<String,String> outProps) |
protected Templates |
createTemplates(URL urlStream) |
protected Templates |
createTemplatesFromContext() |
protected Templates |
getAnnotationTemplates(Annotation[] anns) |
protected Templates |
getInTemplates(Annotation[] anns,
javax.ws.rs.core.MediaType mt) |
protected Templates |
getOutTemplates(Annotation[] anns,
javax.ws.rs.core.MediaType mt) |
protected Result |
getStreamResult(OutputStream os,
Annotation[] anns,
javax.ws.rs.core.MediaType mt) |
protected Templates |
getTemplatesFromAnnotation(Class<?> cls,
Annotation[] anns,
javax.ws.rs.core.MediaType mt) |
protected XSLTTransform |
getXsltTransformAnn(Annotation[] anns,
javax.ws.rs.core.MediaType mt) |
boolean |
inClassCanBeHandled(String className) |
protected boolean |
inTemplatesAvailable(Class<?> cls,
Annotation[] anns,
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(Marshaller ms,
Object obj,
OutputStream os,
Annotation[] anns,
javax.ws.rs.core.MediaType mt) |
protected void |
marshalToWriter(Marshaller ms,
Object obj,
XMLStreamWriter writer,
Annotation[] anns,
javax.ws.rs.core.MediaType mt) |
boolean |
outClassCanBeHandled(String className) |
protected boolean |
outTemplatesAvailable(Class<?> cls,
Annotation[] anns,
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 |
setRefreshTemplates(boolean refresh) |
void |
setResolver(URIResolver resolver) |
void |
setSecureProcessing(boolean secureProcessing) |
void |
setSupportJaxbOnly(boolean support) |
void |
setSystemId(String system) |
protected Object |
unmarshalFromInputStream(Unmarshaller unmarshaller,
InputStream is,
Annotation[] anns,
javax.ws.rs.core.MediaType mt) |
protected Object |
unmarshalFromReader(Unmarshaller unmarshaller,
XMLStreamReader reader,
Annotation[] anns,
javax.ws.rs.core.MediaType mt) |
addAttachmentUnmarshaller, canBeReadAsJaxbElement, doUnmarshal, getStreamReader, getStreamWriter, marshal, marshal, marshal, marshalCollection, marshalCollectionMember, objectFactoryOrIndexAvailable, readFrom, resolveXMLResourceURI, setMarshallerProperties, setMessageContext, setNamespacePrefixes, setSchemaLocation, setXmlPiProperty, setXmlPiPropertyName, setXmlResourceOffset, writeTo
checkAdapter, clearContexts, configureReaderRestrictions, convertToJaxbElementIfNeeded, createDepthReaderIfNeeded, createMarshaller, createTransformReaderIfNeeded, createTransformWriterIfNeeded, createUnmarshaller, createUnmarshaller, getActualType, getClassContext, getClassContext, getCollectionContext, getCollectionWrapperQName, getContext, getDepthProperties, getJAXBContext, getJaxbElementClass, getJaxbQName, getPackageContext, getPackageContext, getSchema, getSchema, getSize, getStreamHandlerFromCurrentMessage, handleExceptionEnd, handleExceptionStart, handleJAXBException, handleXMLStreamException, init, isSkipJaxbChecks, isSupported, isXmlRoot, isXmlType, setAttributesToElements, setCatalogLocation, setCollectionWrapperMap, setCollectionWrapperName, setContext, setContextProperties, setDepthProperties, setExtraClass, setInAppendElements, setInDropElements, setInTransformElements, setJaxbElementClassMap, setJaxbElementClassNames, setMarshallAsJaxbElement, setMarshallerListener, setMarshallerProp, setNamespaceMapper, setNamespaceMapperPropertyName, setOutAppendElements, setOutDropElements, setOutTransformElements, setSchema, setSchemaHandler, setSchemaHandlers, setSchemaLocations, setSingleJaxbContext, setSkipJaxbChecks, setUnmarshallAsJaxbElement, setUnmarshallerListener, setUnmarshallerProperties, setUseSingleContextForPackages, setValidateBeforeWrite, setValidateInput, setValidateOutput, setValidationHandler, setXmlRootAsJaxbElement, setXmlTypeAsJaxbElementOnly, validateObjectIfNeeded, writeTo
getBus, getConsumeMediaTypes, getEnableBuffering, getEnableStreaming, getProduceMediaTypes, isPayloadEmpty, isPayloadEmpty, reportEmptyContentLength, setBus, setConsumeMediaTypes, setEnableBuffering, setEnableStreaming, setProduceMediaTypes
public void setSupportJaxbOnly(boolean support)
public boolean isReadable(Class<?> type, Type genericType, Annotation[] anns, javax.ws.rs.core.MediaType mt)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<T>
isReadable
in class AbstractJAXBProvider<T>
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] anns, javax.ws.rs.core.MediaType mt)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<T>
isWriteable
in class AbstractJAXBProvider<T>
protected boolean inTemplatesAvailable(Class<?> cls, Annotation[] anns, javax.ws.rs.core.MediaType mt)
protected boolean outTemplatesAvailable(Class<?> cls, Annotation[] anns, javax.ws.rs.core.MediaType mt)
protected Templates getTemplatesFromAnnotation(Class<?> cls, Annotation[] anns, javax.ws.rs.core.MediaType mt)
protected Templates getAnnotationTemplates(Annotation[] anns)
protected XSLTTransform getXsltTransformAnn(Annotation[] anns, javax.ws.rs.core.MediaType mt)
protected Templates getInTemplates(Annotation[] anns, javax.ws.rs.core.MediaType mt)
protected Templates getOutTemplates(Annotation[] anns, javax.ws.rs.core.MediaType mt)
protected Object unmarshalFromInputStream(Unmarshaller unmarshaller, InputStream is, Annotation[] anns, javax.ws.rs.core.MediaType mt) throws JAXBException
unmarshalFromInputStream
in class JAXBElementProvider<T>
JAXBException
protected Object unmarshalFromReader(Unmarshaller unmarshaller, XMLStreamReader reader, Annotation[] anns, javax.ws.rs.core.MediaType mt) throws JAXBException
unmarshalFromReader
in class JAXBElementProvider<T>
JAXBException
protected void marshalToWriter(Marshaller ms, Object obj, XMLStreamWriter writer, Annotation[] anns, javax.ws.rs.core.MediaType mt) throws Exception
marshalToWriter
in class JAXBElementProvider<T>
Exception
protected void addAttachmentMarshaller(Marshaller ms)
addAttachmentMarshaller
in class JAXBElementProvider<T>
protected Result getStreamResult(OutputStream os, Annotation[] anns, javax.ws.rs.core.MediaType mt) throws Exception
Exception
protected void marshalToOutputStream(Marshaller ms, Object obj, OutputStream os, Annotation[] anns, javax.ws.rs.core.MediaType mt) throws Exception
marshalToOutputStream
in class JAXBElementProvider<T>
Exception
public void setOutTemplate(String loc)
public void setInTemplate(String loc)
public void setResolver(URIResolver resolver)
public void setSystemId(String system)
public boolean inClassCanBeHandled(String className)
public boolean outClassCanBeHandled(String className)
protected Templates createTemplates(Templates templates, Map<String,Object> configuredParams, Map<String,String> outProps)
protected Templates createTemplatesFromContext()
public void setRefreshTemplates(boolean refresh)
public void setSecureProcessing(boolean secureProcessing)
Apache CXF