private osgResponse controlResponse(osgRequest webRequest) { osgResponse response = new osgResponse(); // get response(???) for web request here...ParseRequest webParser(webRequest); response.PhysicalFileLocation = "<strong>Hello from Controller.</strong>"; return(response); }
private osgRequest loadRequest(HttpRequest request) { // This will all change so no comments currently osgRequest osgRequest = new osgRequest(); osgRequest.RequestURI = "default.html"; osgRequest.RequestMethod = request.HttpMethod.ToString(); switch (osgRequest.RequestMethod) { case "POST": osgRequest.RequestURI = request.Url.ToString(); break; case "GET": osgRequest.RequestURI = request.Url.ToString(); break; } return(osgRequest); }
public void ProcessRequest(HttpContext context) { if (commBuffer_ == null) { context.Response.Write("Remote object not instantiated<br>"); context.Response.End(); } // send to buffer osgRequest request = loadRequest(context.Request); // notify controller of request. Get response. osgResponse response = commBuffer_.controlResponse(request); // verify response from controller if (response != null) { // post response (????) to broswer context.Response.Write(response.PhysicalFileLocation); context.Response.End(); } }