Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6150

Override XSLTJaxbProvider xsl path at runtime

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.0.4, 3.1
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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

      XSLTJaxbProvider.java
              MessageContext mc = getContext();
              if (mc != null) {
                  String template=(String)mc.getContextualProperty("xslt.template");
                  if(template!=null){
                      t=createTemplates(template);
                  }
              }
      

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              slavb18 Vjacheslav Borisov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: