|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectAbstractHttpHandler
net.eduvax.grant.xmlrpc.NodeHttpHandler
public class NodeHttpHandler
Grant http request handler.
| Field Summary | |
|---|---|
private Node |
node
served node |
private NodeXMLrpcServer |
xmlrpcNode
xmlrpc server handler |
private XmlRpcServer |
xmlServer
xmlrpc server |
| Constructor Summary | |
|---|---|
NodeHttpHandler(Node n,
NodeXMLrpcServer xNode)
create new http handler |
|
| Method Summary | |
|---|---|
void |
handle(java.lang.String pathInContext,
java.lang.String pathParams,
HttpRequest request,
HttpResponse response)
|
void |
handleGet(java.lang.String pathInContext,
java.lang.String pathParams,
HttpRequest request,
HttpResponse response)
handle GET http requests. |
void |
handlePost(java.lang.String pathInContext,
java.lang.String pathParams,
HttpRequest request,
HttpResponse response)
handle POST http requests. |
private void |
sendNodeStatus(HttpRequest request,
HttpResponse response)
send node status in http response. |
private void |
sendTaskletOutput(HttpRequest request,
HttpResponse response)
send one tasklet output in http response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private XmlRpcServer xmlServer
private Node node
private NodeXMLrpcServer xmlrpcNode
| Constructor Detail |
|---|
public NodeHttpHandler(Node n,
NodeXMLrpcServer xNode)
n - server node.xNode - node's xmlrpc request handler| Method Detail |
|---|
public void handle(java.lang.String pathInContext,
java.lang.String pathParams,
HttpRequest request,
HttpResponse response)
throws HttpException,
java.io.IOException
HttpException
java.io.IOException
public void handlePost(java.lang.String pathInContext,
java.lang.String pathParams,
HttpRequest request,
HttpResponse response)
throws HttpException,
java.io.IOException
HttpException
java.io.IOException
public void handleGet(java.lang.String pathInContext,
java.lang.String pathParams,
HttpRequest request,
HttpResponse response)
throws HttpException,
java.io.IOException
HttpException
java.io.IOException
private void sendNodeStatus(HttpRequest request,
HttpResponse response)
request - http requestresponse - http response to write into
private void sendTaskletOutput(HttpRequest request,
HttpResponse response)
request - http request. A parameter named 'tpid' is expected and
must contain a tasklet process id.response - http response to write into
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||