Package org.xlightweb

Examples of org.xlightweb.ContentType


        public void onRequest(IHttpExchange httpExchange) throws IOException, BadMessageException {
            System.out.println("WebSockets.onRequest(IHttpExchange)");
       
            IHttpRequest httpRequest = httpExchange.getRequest();
            if (httpRequest.getAccept().contains(new ContentType("text/html"))) {
                String requestURI = httpRequest.getRequestURI();
               
                if (requestURI.equals("/websocket.html")) {
                    String page =   " <html> \r\n" +
                                    "   <head> \r\n" +
View Full Code Here

TOP

Related Classes of org.xlightweb.ContentType

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.