org.apache.blur.thirdparty.thrift_0_9_0.server
Class TExtensibleServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.blur.thirdparty.thrift_0_9_0.server.TExtensibleServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public abstract class TExtensibleServlet
- extends javax.servlet.http.HttpServlet
Servlet implementation class ThriftServer, that allows TProcessor
and
TProtocolFactory
to be supplied after the GenericServlet.init()
method has
finished.
Subclasses must implement the abstract methods that return the TProcessor and
two TProtocolFactory. Those methods are guaranteed to be called exactly once,
and that ServletContext
is available.
- See Also:
- Serialized Form
Methods inherited from class javax.servlet.http.HttpServlet |
service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
TExtensibleServlet
public TExtensibleServlet()
init
public final void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Servlet
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
addCustomHeader
public void addCustomHeader(String key,
String value)
setCustomHeaders
public void setCustomHeaders(Collection<Map.Entry<String,String>> headers)
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.