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 String
SCHEMA_URL
-
Constructor Summary
Constructors Constructor Description GraphQLServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(org.eclipse.jetty.websocket.servlet.WebSocketServletFactory factory)
protected void
doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
protected void
doOptions(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
protected void
doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
void
init(javax.servlet.ServletConfig config)
protected void
service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
setGraphQLSchemaUpdater(GraphQLSchemaUpdater graphQLSchemaUpdater)
void
setServiceManager(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:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
-
configure
public void configure(org.eclipse.jetty.websocket.servlet.WebSocketServletFactory factory)
- Specified by:
configure
in 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:
service
in classorg.eclipse.jetty.websocket.servlet.WebSocketServlet
- Throws:
javax.servlet.ServletException
IOException
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
IOException
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
- Overrides:
doPost
in classjavax.servlet.http.HttpServlet
- Throws:
IOException
-
doOptions
protected void doOptions(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
- Overrides:
doOptions
in classjavax.servlet.http.HttpServlet
- Throws:
IOException
-
-