Package com.noelios.restlet.http

Examples of com.noelios.restlet.http.HttpServerHelper


   * @param request
   *            The HTTP Servlet request.
   * @return The HTTP server handling calls.
   */
  public HttpServerHelper getServer(HttpServletRequest request) {
    HttpServerHelper result = this.helper;

    if (result == null) {
      synchronized (ServerServlet.class) {
        // Find the attribute name to use to store the server reference
        String serverAttributeName = getInitParameter(
View Full Code Here


   *            The HTTP Servlet response.
   */
  @Override
  public void service(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    HttpServerHelper helper = getServer(request);

    if (helper != null) {
      helper
          .handle(new ServletCall(helper.getServer(), request,
              response));
    } else {
      log("[Noelios Restlet Engine] - Unable to get the Restlet HTTP server connector. Status code 500 returned.");
      response.sendError(500);
    }
View Full Code Here

TOP

Related Classes of com.noelios.restlet.http.HttpServerHelper

Copyright © 2018 www.massapicom. 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.