|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectelectric.webserver.messages.tcp.TCPMessageFactory
TCPMessageFactory creates servlet request and response objects based on plain-old-sockets. This is the default factory, and is made available even if no factories are registered in glue-config.xml.
Field Summary |
Constructor Summary | |
TCPMessageFactory()
|
Method Summary | |
InboundHTTPRequest |
createRequest(IChannel channel)
Create a new servlet request based on the channel. |
OutboundHTTPResponse |
createResponse(IChannel channel,
InboundHTTPRequest request)
Create a servlet response based on the given channel and request. |
boolean |
matches(java.lang.String protocol)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TCPMessageFactory()
Method Detail |
public boolean matches(java.lang.String protocol)
matches
in interface IMessageFactory
protocol
-
public InboundHTTPRequest createRequest(IChannel channel) throws java.io.IOException
IMessageFactory
createRequest
in interface IMessageFactory
channel
-
java.io.IOException
public OutboundHTTPResponse createResponse(IChannel channel, InboundHTTPRequest request) throws java.io.IOException
IMessageFactory
This is an internal GLUE api, and is subject to change without notice across minor revisions.
createResponse
in interface IMessageFactory
channel
- request
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |