org.apache.blur.thirdparty.thrift_0_9_0.server
Class TExtensibleServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by 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

Constructor Summary
TExtensibleServlet()
           
 
Method Summary
 void addCustomHeader(String key, String value)
           
 void init(javax.servlet.ServletConfig config)
           
 void setCustomHeaders(Collection<Map.Entry<String,String>> headers)
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TExtensibleServlet

public TExtensibleServlet()
Method Detail

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.