Logo Search packages:      
Sourcecode: jaminid version File versions  Download package

com::prolixtech::jaminid::Protocol::Protocol (  )  [inline, private]

initiates our definition of HTTP

Definition at line 136 of file Protocol.java.

References makeNewMIME().

                       {

        File mf = new File(MIMEFILE);
        if(mf.exists()==false) {
            makeNewMIME();
        } else {
            try {
                MIME.loadFromXML(new FileInputStream(mf));
            } catch (InvalidPropertiesFormatException e) {
                makeNewMIME();
            } catch (FileNotFoundException e) {
                makeNewMIME();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        
                
        requestMethod.put("OPTIONS", false);
        requestMethod.put("GET", true);
        requestMethod.put("HEAD", false);
        requestMethod.put("POST", true);
        requestMethod.put("PUT", false);
        requestMethod.put("DELETE", false);
        requestMethod.put("TRACE", false);
        requestMethod.put("CONNECT", false);

        headerRequest.put("Accept", true);
        headerRequest.put("Accept-Charset", true);
        headerRequest.put("Accept-Encoding", true);
        headerRequest.put("Accept-Language", true);
        headerRequest.put("Authorization", true);
        headerRequest.put("Expect", true);
        headerRequest.put("From", true);
        headerRequest.put("Host", true);
        headerRequest.put("If-Match", true);
        headerRequest.put("If-Modified-Since", true);
        headerRequest.put("If-None-Match", true);
        headerRequest.put("If-Range", true);
        headerRequest.put("If-Unmodified-Since", true);
        headerRequest.put("Max-Forwards", true);
        headerRequest.put("Proxy-Authorization", true);
        headerRequest.put("Range", true);
        headerRequest.put("Referer", true);
        headerRequest.put("TE", true);
        headerRequest.put("User-Agent", true);
        headerRequest.put("Cookie", true);

        headerResponseStatus.put("100", "Continue");
        headerResponseStatus.put("101", "Switching Protocols");
        headerResponseStatus.put("200", "OK");
        headerResponseStatus.put("201", "Created");
        headerResponseStatus.put("202", "Accepted");
        headerResponseStatus.put("203", "Non-Authoritative Information");
        headerResponseStatus.put("204", "No Content");
        headerResponseStatus.put("205", "Reset Content");
        headerResponseStatus.put("206", "Partial Content");
        headerResponseStatus.put("300", "Multiple Choices");
        headerResponseStatus.put("301", "Moved Permanently");
        headerResponseStatus.put("302", "Found");
        headerResponseStatus.put("303", "See Other");
        headerResponseStatus.put("304", "Not Modified");
        headerResponseStatus.put("305", "Use Proxy");
        headerResponseStatus.put("307", "Temporary Redirect");
        headerResponseStatus.put("400", "Bad Request");
        headerResponseStatus.put("401", "Unauthorized");
        headerResponseStatus.put("402", "Payment Required");
        headerResponseStatus.put("403", "Forbidden");
        headerResponseStatus.put("404", "Not Found");
        headerResponseStatus.put("405", "Method Not Allowed");
        headerResponseStatus.put("406", "Not Acceptable");
        headerResponseStatus.put("407", "Proxy Authentication Required");
        headerResponseStatus.put("408", "Request Time-out");
        headerResponseStatus.put("409", "Conflict");
        headerResponseStatus.put("410", "Gone");
        headerResponseStatus.put("411", "Length Required");
        headerResponseStatus.put("412", "Precondition Failed");
        headerResponseStatus.put("413", "Request Entity Too Large");
        headerResponseStatus.put("414", "Request-URI Too Large");
        headerResponseStatus.put("415", "Unsupported Media Type");
        headerResponseStatus.put("416", "Requested range not satisfiable");
        headerResponseStatus.put("417", "Expectation Failed");
        headerResponseStatus.put("500", "Internal Server Error");
        headerResponseStatus.put("501", "Not Implemented");
        headerResponseStatus.put("502", "Bad Gateway");
        headerResponseStatus.put("503", "Service Unavailable");
        headerResponseStatus.put("504", "Gateway Time-out");
        headerResponseStatus.put("505", "HTTP Version not supported");

    }


Generated by  Doxygen 1.6.0   Back to index