class ClientSpanJavaScriptServlet extends HttpServlet {

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		if (servletPlugin.isClientSpanCollectionEnabled()) {
			resp.setHeader(ETAG, javaScriptEtag);
			resp.setHeader(CACHE_CONTROL, getCacheControlMaxAge());
			if (isInClientCache(req)) {
				resp.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
			} else {
				resp.setContentType(MIME_APPLICATION_JAVASCRIPT);
				resp.getWriter().write(javaScript);
			}
		} else {
			log.debug("Client span collection is disabled");
			resp.sendError(HttpServletResponse.SC_NOT_FOUND);
		}
	}

	public  ClientSpanJavaScriptServlet();
	public  ClientSpanJavaScriptServlet(ServletPlugin servletPlugin);

}