public class XsdSchemaHandlerAdapter extends TransformerObjectSupport implements org.springframework.web.servlet.HandlerAdapter
XsdSchema
interface with the generic DispatcherServlet
.
Reads the source from the mapped XsdSchema
implementation, and writes that as the result to the
HttpServletResponse
. Allows for post-processing the schema in subclasses.XsdSchema
,
getSchemaSource(XsdSchema)
logger
Constructor and Description |
---|
XsdSchemaHandlerAdapter() |
Modifier and Type | Method and Description |
---|---|
long |
getLastModified(javax.servlet.http.HttpServletRequest request,
Object handler) |
protected Source |
getSchemaSource(XsdSchema schema)
Returns the
Source of the given schema. |
org.springframework.web.servlet.ModelAndView |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler) |
boolean |
supports(Object handler) |
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
public boolean supports(Object handler)
supports
in interface org.springframework.web.servlet.HandlerAdapter
public long getLastModified(javax.servlet.http.HttpServletRequest request, Object handler)
getLastModified
in interface org.springframework.web.servlet.HandlerAdapter
public org.springframework.web.servlet.ModelAndView handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler) throws Exception
handle
in interface org.springframework.web.servlet.HandlerAdapter
Exception
protected Source getSchemaSource(XsdSchema schema) throws Exception
Source
of the given schema. Allows for post-processing and transformation of the schema in
sub-classes.
Default implementation simply returns XsdSchema.getSource()
.schema
- the schemaException
- in case of errorsCopyright © 2005–2015 The Spring Web Services Framework. All rights reserved.