Package org.xlightweb

Examples of org.xlightweb.HttpResponse.addHeader()


      } else if (exchange.getRequest().getMethod().equals(IHttpMessage.DELETE_METHOD)) {
        exchange.send(new HttpResponse(200, "text/plain", "deleted"));

      } else if (exchange.getRequest().getMethod().equals(IHttpMessage.OPTIONS_METHOD)) {
        HttpResponse response = new HttpResponse(200);
        response.addHeader("Allow", "GET,POST");
        exchange.send(response);
      }           
    }
  }
 
View Full Code Here


      } else if (exchange.getRequest().getMethod().equals(IHttpMessage.DELETE_METHOD)) {
        exchange.send(new HttpResponse(200, "text/plain", "deleted"));

      } else if (exchange.getRequest().getMethod().equals(IHttpMessage.OPTIONS_METHOD)) {
        HttpResponse response = new HttpResponse(200);
        response.addHeader("Allow", "GET,POST");
        exchange.send(response);
      }           
    }
  }
 
View Full Code Here

      } else if (exchange.getRequest().getMethod().equals(IHttpMessage.DELETE_METHOD)) {
        exchange.send(new HttpResponse(200, "text/plain", "deleted"));

      } else if (exchange.getRequest().getMethod().equals(IHttpMessage.OPTIONS_METHOD)) {
        HttpResponse response = new HttpResponse(200);
        response.addHeader("Allow", "GET,POST");
        exchange.send(response);
      }           
    }
  }
 
View Full Code Here

      } else if (exchange.getRequest().getMethod().equals(IHttpMessage.DELETE_METHOD)) {
        exchange.send(new HttpResponse(200, "text/plain", "deleted"));

      } else if (exchange.getRequest().getMethod().equals(IHttpMessage.OPTIONS_METHOD)) {
        HttpResponse response = new HttpResponse(200);
        response.addHeader("Allow", "GET,POST");
        exchange.send(response);
      }           
    }
  }
 
View Full Code Here

      } else if (exchange.getRequest().getMethod().equals(IHttpMessage.DELETE_METHOD)) {
        exchange.send(new HttpResponse(200, "text/plain", "deleted"));

      } else if (exchange.getRequest().getMethod().equals(IHttpMessage.OPTIONS_METHOD)) {
        HttpResponse response = new HttpResponse(200);
        response.addHeader("Allow", "GET,POST");
        exchange.send(response);
      }           
    }
  }
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.