org.processmining.framework.models.recommendation.net
Class RecommendationServiceHandler

java.lang.Object
  extended by org.processmining.framework.models.recommendation.net.RecommendationServiceHandler
All Implemented Interfaces:
ServiceHandler

public class RecommendationServiceHandler
extends java.lang.Object
implements ServiceHandler

Author:
christian

Field Summary
protected static java.lang.String hostId
           
protected  RecommendationProvider localProvider
           
protected  RecommendationQueryMarshal queryMarshal
           
protected  RecommendationResultMarshal resultMarshal
           
 
Constructor Summary
RecommendationServiceHandler(RecommendationProvider provider)
           
 
Method Summary
 void handleRequest(java.io.BufferedReader in, java.io.PrintWriter out)
           
protected  void sendError(java.io.PrintWriter out, java.lang.String reason, java.lang.Exception e)
           
protected  void writeLine(java.io.Writer out, java.lang.String line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hostId

protected static java.lang.String hostId

queryMarshal

protected RecommendationQueryMarshal queryMarshal

resultMarshal

protected RecommendationResultMarshal resultMarshal

localProvider

protected RecommendationProvider localProvider
Constructor Detail

RecommendationServiceHandler

public RecommendationServiceHandler(RecommendationProvider provider)
Method Detail

handleRequest

public void handleRequest(java.io.BufferedReader in,
                          java.io.PrintWriter out)
                   throws java.io.IOException
Specified by:
handleRequest in interface ServiceHandler
Throws:
java.io.IOException

sendError

protected void sendError(java.io.PrintWriter out,
                         java.lang.String reason,
                         java.lang.Exception e)
                  throws java.io.IOException
Throws:
java.io.IOException

writeLine

protected void writeLine(java.io.Writer out,
                         java.lang.String line)
                  throws java.io.IOException
Throws:
java.io.IOException