Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toCanonicalProtocol (0.08 sec)

  1. src/test/java/org/codelibs/core/net/URLUtilTest.java

         */
        public void testToCanonicalProtocol() throws Exception {
            assertEquals("jar", URLUtil.toCanonicalProtocol("wsjar"));
            assertEquals("jar", URLUtil.toCanonicalProtocol("jar"));
            assertEquals("zip", URLUtil.toCanonicalProtocol("zip"));
            assertEquals("file", URLUtil.toCanonicalProtocol("file"));
        }
    
        /**
         * @throws Exception
         */
        public void testToFile() throws Exception {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/net/URLUtil.java

        }
    
        /**
         * プロトコルを正規化して返します。
         *
         * @param protocol
         *            プロトコル。{@literal null}や空文字列であってはいけません
         * @return 正規化されたプロトコル
         */
        public static String toCanonicalProtocol(final String protocol) {
            assertArgumentNotEmpty("protocol", protocol);
    
            final String canonicalProtocol = CANONICAL_PROTOCOLS.get(protocol);
            if (canonicalProtocol != null) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top