Save This Page
Home » spring-ws-1.5.9-with-dependencies » org.springframework » oxm » support » [javadoc | source]
org.springframework.oxm.support
public class: MarshallingView [javadoc | source]
java.lang.Object
   org.springframework.web.servlet.view.AbstractUrlBasedView
      org.springframework.oxm.support.MarshallingView
Spring-MVC View that allows for response context to be rendered as the result of marshalling by a Marshaller .

The Object to be marshalled is supplied as a parameter in the model and then {@linkplain #locateToBeMarshalled(Map) detected} during response rendering. Users can either specify a specific entry in the model via the sourceKey property or have Spring locate the Source object.

Field Summary
public static final  String DEFAULT_CONTENT_TYPE    Default content type. Overridable as bean property. 
Constructor:
 public MarshallingView() 
 public MarshallingView(Marshaller marshaller) 
    Constructs a new MarshallingView with the given Marshaller set.
Method from org.springframework.oxm.support.MarshallingView Summary:
initApplicationContext,   locateToBeMarshalled,   renderMergedOutputModel,   setMarshaller,   setModelKey
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.oxm.support.MarshallingView Detail:
 protected  void initApplicationContext() throws BeansException 
 protected Object locateToBeMarshalled(Map model) throws ServletException 
    Locates the object to be marshalled. The default implementation first attempts to look under the configured {@linkplain #setModelKey(String) model key}, if any, before attempting to locate an object of {@linkplain Marshaller#supports(Class) supported type}.
 protected  void renderMergedOutputModel(Map model,
    HttpServletRequest request,
    HttpServletResponse response) throws Exception 
 public  void setMarshaller(Marshaller marshaller) 
 public  void setModelKey(String modelKey) 
    Set the name of the model key that represents the object to be marshalled. If not specified, the model map will be searched for a supported value type.