Methods Summary |
---|
protected void | closeService()
this.service.close();
|
private void | getService(org.apache.lucene.gdata.server.GDataRequest request)
GDataServerRegistry registry = GDataServerRegistry.getRegistry();
ServiceFactory serviceFactory = registry.lookup(ServiceFactory.class,ComponentType.SERVICEFACTORY);
this.service = serviceFactory.getService(request);
if(this.service == null)
throw new ServletException("Service not available");
|
protected void | initializeRequestHandler(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.lucene.gdata.server.GDataRequest.GDataRequestType type)
this.feedRequest = new GDataRequest(request, type);
this.feedResponse = new GDataResponse(response);
this.feedResponse.setEncoding(ENCODING);
try {
this.feedRequest.initializeRequest();
} catch (GDataRequestException e) {
setError(e.getErrorCode());
LOG.warn("Couldn't initialize FeedRequest - " + e.getMessage(), e);
throw e;
}
getService(this.feedRequest);
|
public abstract void | processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
|
protected void | sendError()
this.feedResponse.sendError();
|
protected void | setError(int error)
this.feedResponse.setError(error);
|
protected void | setFeedResponseFormat()
this.feedResponse.setOutputFormat(this.feedRequest.getRequestedResponseFormat());
|
protected void | setFeedResponseStatus(int status)
this.feedResponse.setResponseCode(status);
|