@Override
	public void handle(HttpRequest request, HttpResponse response,
			HttpContext context) throws HttpException, IOException {
		String method = request.getRequestLine().getMethod()
				.toUpperCase(Locale.ENGLISH);
		if (!method.equals("GET") && !method.equals("HEAD")
				&& !method.equals("POST")) {
			throw new MethodNotSupportedException(method
					+ " method not supported");
		}
		String target = request.getRequestLine().getUri();
		String key = target.substring(5);
		if(contents.containsKey(key)) {
			String contentType = "text";
			if(key.endsWith("css"))
				contentType = "text/css";
			else if (key.endsWith("js"))
				contentType = "text/javascript";
			else if (key.endsWith("woff"))
				contentType = "application/x-woff";
			StringEntity entity = new StringEntity(new String(contents.get(key)), ContentType.parse(contentType));
			response.setEntity(entity);
			response.setStatusCode(200);
		} else {
			response.setStatusCode(404);
		}
	}