org.opencrx.application.airsync.server.handler
Class AbstractHandler

java.lang.Object
  extended by org.opencrx.application.airsync.server.handler.AbstractHandler
All Implemented Interfaces:
IRequestHandler
Direct Known Subclasses:
FolderSyncHandler, GetItemEstimateHandler, MoveItemsHandler, PingHandler, SyncHandler

public abstract class AbstractHandler
extends Object
implements IRequestHandler


Field Summary
protected  ISyncBackend backend
           
protected static Logger logger
           
 
Constructor Summary
protected AbstractHandler(ISyncBackend backend)
           
 
Method Summary
protected abstract  Document handle(SyncRequest request, Document docRequest)
           
 void handle(SyncRequest request, SyncResponse response, boolean requestHasBody)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

backend

protected ISyncBackend backend

logger

protected static final Logger logger
Constructor Detail

AbstractHandler

protected AbstractHandler(ISyncBackend backend)
Method Detail

handle

public void handle(SyncRequest request,
                   SyncResponse response,
                   boolean requestHasBody)
            throws IOException
Specified by:
handle in interface IRequestHandler
Throws:
IOException

handle

protected abstract Document handle(SyncRequest request,
                                   Document docRequest)


This software is published under the BSD license. Copyright © 2003-2010, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.