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
-
-
Constructor Summary
Constructors Constructor Description AbstractSchemaController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
mappings
protected M extends BiFunction<String,SchemaType,File> mappings
-
-
Method Detail
-
getFileForNamespace
protected File getFileForNamespace(@NonNull String namespace, SchemaType type)
-
el
protected void el(XMLStreamWriter w, String name, String chars) throws XMLStreamException
- Throws:
XMLStreamException
-
h2
protected void h2(XMLStreamWriter w, String chars) throws XMLStreamException
- Throws:
XMLStreamException
-
a
protected void a(XMLStreamWriter w, String href, String chars) throws XMLStreamException
- Throws:
XMLStreamException
-
li_a
protected void li_a(XMLStreamWriter w, String href, String chars, String after) throws XMLStreamException
- Throws:
XMLStreamException
-
li_a
protected void li_a(XMLStreamWriter w, String href, String chars) throws XMLStreamException
- Throws:
XMLStreamException
-
li
protected void li(XMLStreamWriter w, String chars) throws XMLStreamException
- 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
-
-