Package org.apache.unomi.graphql.servlet
Class GraphQLServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.eclipse.jetty.websocket.servlet.WebSocketServlet
-
- org.apache.unomi.graphql.servlet.GraphQLServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class GraphQLServlet extends org.eclipse.jetty.websocket.servlet.WebSocketServlet- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSCHEMA_URL
-
Constructor Summary
Constructors Constructor Description GraphQLServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(org.eclipse.jetty.websocket.servlet.WebSocketServletFactory factory)protected voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)protected voiddoOptions(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)protected voiddoPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)voidinit(javax.servlet.ServletConfig config)protected voidservice(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)voidsetGraphQLSchemaUpdater(GraphQLSchemaUpdater graphQLSchemaUpdater)voidsetServiceManager(ServiceManager serviceManager)-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doPut, doTrace, getLastModified, service
-
-
-
-
Field Detail
-
SCHEMA_URL
public static final String SCHEMA_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
setServiceManager
public void setServiceManager(ServiceManager serviceManager)
-
setGraphQLSchemaUpdater
public void setGraphQLSchemaUpdater(GraphQLSchemaUpdater graphQLSchemaUpdater)
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
configure
public void configure(org.eclipse.jetty.websocket.servlet.WebSocketServletFactory factory)
- Specified by:
configurein classorg.eclipse.jetty.websocket.servlet.WebSocketServlet
-
service
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException- Overrides:
servicein classorg.eclipse.jetty.websocket.servlet.WebSocketServlet- Throws:
javax.servlet.ServletExceptionIOException
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
IOException
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException- Overrides:
doPostin classjavax.servlet.http.HttpServlet- Throws:
IOException
-
doOptions
protected void doOptions(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException- Overrides:
doOptionsin classjavax.servlet.http.HttpServlet- Throws:
IOException
-
-