Ontimize 5.2072EN

com.ontimize.util.rmitunneling
Class ServletHandler.ServletForwardCommand

java.lang.Object
  extended bycom.ontimize.util.rmitunneling.ServletHandler.ServletForwardCommand
All Implemented Interfaces:
ServletHandler.RMICommandHandler
Enclosing class:
ServletHandler

protected static class ServletHandler.ServletForwardCommand
extends java.lang.Object
implements ServletHandler.RMICommandHandler

Class that has an execute command to forward request body to local port on the server and send server reponse back to client.


Constructor Summary
protected ServletHandler.ServletForwardCommand()
           
 
Method Summary
 void execute(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.String param)
          Execute the forward command.
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletHandler.ServletForwardCommand

protected ServletHandler.ServletForwardCommand()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface ServletHandler.RMICommandHandler

execute

public void execute(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res,
                    java.lang.String param)
             throws ServletHandler.ServletClientException,
                    ServletHandler.ServletServerException,
                    java.io.IOException
Execute the forward command. Forwards data from incoming servlet request to a port on the local machine. Presumably, an RMI server will be reading the data that this method sends.

Specified by:
execute in interface ServletHandler.RMICommandHandler
Parameters:
req - The servlet request.
res - The servlet response.
param - Port to which data will be sent.
Throws:
ServletHandler.ServletClientException
ServletHandler.ServletServerException
java.io.IOException

Ontimize