コード例 #1
0
ファイル: Listener.cs プロジェクト: asr340/owasp-code-central
 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;
 }
コード例 #2
0
 /* "gateway" method to controller to handle requests */
 public osgResponse controlResponse(osgRequest request)
 {
     requestIn = true;
     if( request != null ) {
     responseReady = true;
     return delRespond_(request);
     }
     return null;
 }
コード例 #3
0
 /* "gateway" method to controller to handle requests */
 public osgResponse controlResponse(osgRequest request)
 {
     requestIn = true;
     if (request != null)
     {
         responseReady = true;
         return(delRespond_(request));
     }
     return(null);
 }
コード例 #4
0
 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;
 }