org.systinet.wasp.webservice
Interface RawService

All Known Subinterfaces:
RawService

public interface RawService

This interface is used by service implementation which services clients on the transport level in a manner similar to using Servlets. For instance:

 public class MyRawService implements RawService
 {
     public void process(Connection connection) throws IOException
     {
         connection.getOutputMessage().write("<html><body>Hello!</body></html>".getBytes());
     }
 }

 Registry.publish("/MyRawService", new MyRawService());

Since:
4.5
Component:
Core

Method Summary
 void process(Connection connection)
          Processes incoming request and returns reply
 

Method Detail

process

public void process(Connection connection)
             throws java.io.IOException
Processes incoming request and returns reply

Parameters:
connection - represents client connection to the server
Throws:
java.io.IOException - when some I/O error occurs