org.apache.lucene.gdata.servlet.handler
Class DefaultRequestHandlerFactory

java.lang.Object
  extended by org.apache.lucene.gdata.servlet.handler.RequestHandlerFactory
      extended by org.apache.lucene.gdata.servlet.handler.DefaultRequestHandlerFactory
All Implemented Interfaces:
ServerComponent

public class DefaultRequestHandlerFactory
extends RequestHandlerFactory

Default implementation for RequestHandlerFactory Builds the GDataRequestHandler instances. This class should not be access directy. The class will be registered in the GDataServerRegistry. Use GDataServerRegistry.lookup(Class, ComponentType)

Author:
Simon Willnauer

Constructor Summary
DefaultRequestHandlerFactory()
          public constructor to enable loading via the registry
 
Method Summary
 void destroy()
          will be called when the registry is going down e.g.
 GDataRequestHandler getDeleteAccountHandler()
          Creates a DeleteAccountHandler which processes a Account Delete request.
 GDataRequestHandler getDeleteFeedHandler()
          Creates a DeleteFeedHandler which processes a Feed Insert request.
 GDataRequestHandler getEntryDeleteHandler()
          Creates a EntryDeleteHandler which processes a GDATA DELETE request.
 GDataRequestHandler getEntryInsertHandler()
          Creates a EntryInsertHandler which processes a GDATA Insert request.
 GDataRequestHandler getEntryUpdateHandler()
          Creates a EntryUpdateHandler which processes a GDATA UPDATE request.
 GDataRequestHandler getFeedQueryHandler()
          Creates a FeedQueryHandler which processes a GDATA Query / Get request.
 GDataRequestHandler getInsertAccountHandler()
          Creates a InsertAccountHandler which processes a Account Insert request.
 GDataRequestHandler getInsertFeedHandler()
          Creates a InsertFeedHandler which processes a Feed Insert request.
 GDataRequestHandler getUpdateAccountHandler()
          Creates a UpdateAccountHandler which processes a Account Update request.
 GDataRequestHandler getUpdateFeedHandler()
          Creates a UpdateFeedHandler which processes a Feed Insert request.
 void initialize()
          will be call when the component is registered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRequestHandlerFactory

public DefaultRequestHandlerFactory()
public constructor to enable loading via the registry

See Also:
Component, GDataServerRegistry
Method Detail

getEntryUpdateHandler

public GDataRequestHandler getEntryUpdateHandler()
Description copied from class: RequestHandlerFactory
Creates a EntryUpdateHandler which processes a GDATA UPDATE request.

Specified by:
getEntryUpdateHandler in class RequestHandlerFactory
Returns:
- a RequestHandlerInstance
See Also:
RequestHandlerFactory.getEntryUpdateHandler()

getEntryDeleteHandler

public GDataRequestHandler getEntryDeleteHandler()
Description copied from class: RequestHandlerFactory
Creates a EntryDeleteHandler which processes a GDATA DELETE request.

Specified by:
getEntryDeleteHandler in class RequestHandlerFactory
Returns:
- a RequestHandlerInstance
See Also:
RequestHandlerFactory.getEntryDeleteHandler()

getFeedQueryHandler

public GDataRequestHandler getFeedQueryHandler()
Description copied from class: RequestHandlerFactory
Creates a FeedQueryHandler which processes a GDATA Query / Get request.

Specified by:
getFeedQueryHandler in class RequestHandlerFactory
Returns:
- a RequestHandlerInstance
See Also:
RequestHandlerFactory.getFeedQueryHandler()

getEntryInsertHandler

public GDataRequestHandler getEntryInsertHandler()
Description copied from class: RequestHandlerFactory
Creates a EntryInsertHandler which processes a GDATA Insert request.

Specified by:
getEntryInsertHandler in class RequestHandlerFactory
Returns:
- a RequestHandlerInstance
See Also:
RequestHandlerFactory.getEntryInsertHandler()

getInsertAccountHandler

public GDataRequestHandler getInsertAccountHandler()
Description copied from class: RequestHandlerFactory
Creates a InsertAccountHandler which processes a Account Insert request.

Specified by:
getInsertAccountHandler in class RequestHandlerFactory
Returns:
- a RequestHandlerInstance
See Also:
RequestHandlerFactory.getInsertAccountHandler()

getDeleteAccountHandler

public GDataRequestHandler getDeleteAccountHandler()
Description copied from class: RequestHandlerFactory
Creates a DeleteAccountHandler which processes a Account Delete request.

Specified by:
getDeleteAccountHandler in class RequestHandlerFactory
Returns:
- a RequestHandlerInstance
See Also:
RequestHandlerFactory.getDeleteAccountHandler()

getUpdateAccountHandler

public GDataRequestHandler getUpdateAccountHandler()
Description copied from class: RequestHandlerFactory
Creates a UpdateAccountHandler which processes a Account Update request.

Specified by:
getUpdateAccountHandler in class RequestHandlerFactory
Returns:
- a RequestHandlerInstance
See Also:
RequestHandlerFactory.getUpdateAccountHandler()

getInsertFeedHandler

public GDataRequestHandler getInsertFeedHandler()
Description copied from class: RequestHandlerFactory
Creates a InsertFeedHandler which processes a Feed Insert request.

Specified by:
getInsertFeedHandler in class RequestHandlerFactory
Returns:
- a RequestHandlerInstance
See Also:
RequestHandlerFactory.getInsertFeedHandler()

getUpdateFeedHandler

public GDataRequestHandler getUpdateFeedHandler()
Description copied from class: RequestHandlerFactory
Creates a UpdateFeedHandler which processes a Feed Insert request.

Specified by:
getUpdateFeedHandler in class RequestHandlerFactory
Returns:
- a RequestHandlerInstance
See Also:
RequestHandlerFactory.getUpdateFeedHandler()

getDeleteFeedHandler

public GDataRequestHandler getDeleteFeedHandler()
Description copied from class: RequestHandlerFactory
Creates a DeleteFeedHandler which processes a Feed Insert request.

Specified by:
getDeleteFeedHandler in class RequestHandlerFactory
Returns:
- a RequestHandlerInstance
See Also:
RequestHandlerFactory.getDeleteFeedHandler()

initialize

public void initialize()
Description copied from interface: ServerComponent
will be call when the component is registered. if this fails the server must not startup.

See Also:
ServerComponent.initialize()

destroy

public void destroy()
Description copied from interface: ServerComponent
will be called when the registry is going down e.g. when the GDataServerRegistry.destroy() method is called.

See Also:
ServerComponent.destroy()


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.