com.browseengine.bobo.server.protocol
Class ProtocolHandler
java.lang.Object
com.browseengine.bobo.server.protocol.ProtocolHandler
- Direct Known Subclasses:
- BrowseJSONHandler, JSONHandler
public abstract class ProtocolHandler
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProtocolHandler
public ProtocolHandler()
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.