jason.framework.protocol
Class ProtocolFactory

java.lang.Object
  |
  +--jason.framework.protocol.ProtocolFactory

public final class ProtocolFactory
extends java.lang.Object

Factory for all protocol parser This factory limits the scope of the constructor, this is useful for reseting a protocol handler without correcting all user classes


Constructor Summary
ProtocolFactory()
           
 
Method Summary
static HttpRequestParser getHttpRequestParser()
           
static HttpResponseBuilder getHttpResponseBuilder(HttpRequestParser parser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolFactory

public ProtocolFactory()
Method Detail

getHttpRequestParser

public static HttpRequestParser getHttpRequestParser()
Returns:
a Parser for HTTP request

getHttpResponseBuilder

public static HttpResponseBuilder getHttpResponseBuilder(HttpRequestParser parser)
Returns:
a Response builder for the HTTP protocol. User must pass in parameter the HttpRequestParser used for parsing the request