cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-6150) Override XSLTJaxbProvider xsl path at runtime
Date Fri, 12 Dec 2014 14:00:15 GMT

     [ https://issues.apache.org/jira/browse/CXF-6150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sergey Beryozkin resolved CXF-6150.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.4
                   3.1.0
         Assignee: Sergey Beryozkin

> Override XSLTJaxbProvider xsl path at runtime
> ---------------------------------------------
>
>                 Key: CXF-6150
>                 URL: https://issues.apache.org/jira/browse/CXF-6150
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>    Affects Versions: 3.0.2
>            Reporter: Vjacheslav Borisov
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 3.1.0, 3.0.4
>
>
> XSLTJaxbProvider xslt url could be configured at runtime using MessageContext:
> eg, at jax-rs method 
> messageContext.put("xslt.template","stylesheets/path/to/xsl");
> and in XSLTJaxbProvider::getOutTemplates 
> {code:title=XSLTJaxbProvider.java|borderStyle=solid}
>         MessageContext mc = getContext();
>         if (mc != null) {
>             String template=(String)mc.getContextualProperty("xslt.template");
>             if(template!=null){
>                 t=createTemplates(template);
>             }
>         }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message