com.browseengine.bobo.server.protocol
Class ProtocolHandler

java.lang.Object
  extended by com.browseengine.bobo.server.protocol.ProtocolHandler
Direct Known Subclasses:
BrowseJSONHandler, JSONHandler

public abstract class ProtocolHandler
extends Object


Constructor Summary
ProtocolHandler()
           
 
Method Summary
abstract  Object deserializeRequest(Class reqClass, byte[] req)
           
abstract  Object deserializeRequest(Class reqClass, javax.servlet.http.HttpServletRequest req)
           
static ProtocolHandler getProtocolHandler(String protocol)
           
abstract  String getSupportedProtocol()
           
static void registerProtocolHandler(ProtocolHandler handler)
           
abstract  byte[] serializeResult(Object result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolHandler

public ProtocolHandler()
Method Detail

deserializeRequest

public abstract Object deserializeRequest(Class reqClass,
                                          javax.servlet.http.HttpServletRequest req)
                                   throws IOException
Throws:
IOException

deserializeRequest

public abstract Object deserializeRequest(Class reqClass,
                                          byte[] req)
                                   throws IOException
Throws:
IOException

serializeResult

public abstract byte[] serializeResult(Object result)
                                throws IOException
Throws:
IOException

getSupportedProtocol

public abstract String getSupportedProtocol()

registerProtocolHandler

public static void registerProtocolHandler(ProtocolHandler handler)

getProtocolHandler

public static ProtocolHandler getProtocolHandler(String protocol)


Copyright © 2005-2012. All Rights Reserved.