1 18 package sync4j.framework.transport.http; 19 20 import java.util.Map ; 21 22 import javax.servlet.http.*; 23 24 import sync4j.framework.server.SyncResponse; 25 import sync4j.framework.core.Sync4jException; 26 import sync4j.framework.server.error.ServerException; 27 import sync4j.framework.server.error.NotImplementedException; 28 import sync4j.framework.protocol.ProtocolException; 29 30 31 39 public interface SyncHolder { 40 42 44 public void setSessionId(String sessionId) throws Sync4jException; 45 46 public String getSessionId(); 47 48 59 public SyncResponse processXMLMessage(final byte[] msg , 60 final Map parameters , 61 final Map headers ) 62 throws NotImplementedException, ProtocolException, ServerException; 63 64 75 public SyncResponse processWBXMLMessage(final byte[] msg , 76 final Map parameters , 77 final Map headers ) 78 throws NotImplementedException, ProtocolException, ServerException; 79 80 87 public void close() throws Exception ; 88 89 93 public long getCreationTimestamp(); 94 } | Popular Tags |