Package nl.vpro.web.servlet
Class AbstractSchemaController<M extends BiFunction<String,SchemaType,File>>
java.lang.Object
nl.vpro.web.servlet.AbstractSchemaController<M>
public abstract class AbstractSchemaController<M extends BiFunction<String,SchemaType,File>>
extends Object
- Since:
- 3.4
- Author:
- Michiel Meeuwissen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
a
(XMLStreamWriter w, String href, String chars) protected void
el
(XMLStreamWriter w, String name, String chars) protected File
getFileForNamespace
(@NonNull String namespace, SchemaType type) protected void
getJsonSchema
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String namespace) protected void
getXSD
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String namespace) protected void
h2
(XMLStreamWriter w, String chars) protected void
li
(XMLStreamWriter w, String chars) protected void
li_a
(XMLStreamWriter w, String href, String chars) protected void
li_a
(XMLStreamWriter w, String href, String chars, String after) protected void
serveFile
(File file, String contentType, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected void
serveJsonSchema
(File file, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected void
serveXml
(File file, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Field Details
-
mappings
-
-
Constructor Details
-
AbstractSchemaController
public AbstractSchemaController()
-
-
Method Details
-
getFileForNamespace
-
el
- Throws:
XMLStreamException
-
h2
- Throws:
XMLStreamException
-
a
- Throws:
XMLStreamException
-
li_a
protected void li_a(XMLStreamWriter w, String href, String chars, String after) throws XMLStreamException - Throws:
XMLStreamException
-
li_a
- Throws:
XMLStreamException
-
li
- Throws:
XMLStreamException
-
getXSD
protected void getXSD(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String namespace) throws IOException - Throws:
IOException
-
getJsonSchema
protected void getJsonSchema(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String namespace) throws IOException - Throws:
IOException
-
serveXml
protected void serveXml(File file, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-
serveJsonSchema
protected void serveJsonSchema(File file, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-
serveFile
protected void serveFile(File file, String contentType, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-