Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for doGet (0.04 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/feature/Features.java

        }
    
        private static boolean doGet(Properties userProperties, String key, boolean def) {
            return doGet(userProperties != null ? userProperties.get(key) : null, def);
        }
    
        private static boolean doGet(Map<String, ?> userProperties, String key, boolean def) {
            return doGet(userProperties != null ? userProperties.get(key) : null, def);
        }
    
        private static boolean doGet(Object val, boolean def) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jan 09 13:04:57 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/storage/StorageClientTest.java

            try (final ResponseData responseData = storageClient.doGet("storage://fess/none")) {
                fail();
            } catch (ChildUrlsException e) {
                String[] values = e.getChildUrlList().stream().map(d -> d.getUrl()).sorted().toArray(n -> new String[n]);
                assertEquals(0, values.length);
            }
            try (final ResponseData responseData = storageClient.doGet("")) {
                fail();
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/CacheSupport.java

        @Override
        public V get(K key, Function<? super K, ? extends V> factory) {
            V value = doGet(key);
            if (value == null) {
                value = factory.apply(key);
                doCache(key, value);
            }
    
            return value;
        }
    
        @Override
        public V getIfPresent(K key) {
            return doGet(key);
        }
    
        @Override
        public void put(K key, V value) {
            doCache(key, value);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/publishing/javaLibrary/groovy/src/main/java/org/gradle/HttpClientWrapper.java

            this.client = client;
        }
    
        // public methods belongs to your API
        public byte[] doRawGet(String url) {
            GetMethod method = new GetMethod(url);
            try {
                int statusCode = doGet(method);
                return method.getResponseBody();
    
            } catch (Exception e) {
                ExceptionUtils.rethrow(e); // this dependency is internal only
            } finally {
                method.releaseConnection();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/publishing/javaLibrary/kotlin/src/main/java/org/gradle/HttpClientWrapper.java

            this.client = client;
        }
    
        // public methods belongs to your API
        public byte[] doRawGet(String url) {
            GetMethod method = new GetMethod(url);
            try {
                int statusCode = doGet(method);
                return method.getResponseBody();
    
            } catch (Exception e) {
                ExceptionUtils.rethrow(e); // this dependency is internal only
            } finally {
                method.releaseConnection();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. test/typeparam/genembed.go

    }
    
    type getter[T any] interface {
    	get() T
    }
    
    //go:noinline
    func doGet[T any](i getter[T]) T {
    	return i.get()
    }
    
    //go:noline
    func doGet2[T any](i interface{}) T {
    	i2 := i.(getter[T])
    	return i2.get()
    }
    
    func main() {
    	a := A[int]{B: B[int]{3}}
    	var i getter[int] = &a
    
    	if got, want := doGet(i), 3; got != want {
    		panic(fmt.Sprintf("got %v, want %v", got, want))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 901 bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/java-library/quickstart/groovy/src/main/java/org/gradle/HttpClientWrapper.java

            this.client = client;
        }
    
        // public methods belongs to your API
        public byte[] doRawGet(String url) {
            HttpGet request = new HttpGet(url);
            try {
                HttpEntity entity = doGet(request);
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                entity.writeTo(baos);
                return baos.toByteArray();
            } catch (Exception e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/java-library/quickstart/kotlin/src/main/java/org/gradle/HttpClientWrapper.java

            this.client = client;
        }
    
        // public methods belongs to your API
        public byte[] doRawGet(String url) {
            HttpGet request = new HttpGet(url);
            try {
                HttpEntity entity = doGet(request);
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                entity.writeTo(baos);
                return baos.toByteArray();
            } catch (Exception e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServer.java

         *
         * <p>The returned {@link BuildableExpectedRequest} can be used to modify the behaviour or expectations.
         */
        public BuildableExpectedRequest get(String path) {
            return doGet(path);
        }
    
        private ExpectMethod doGet(String path) {
            return new ExpectMethod("GET", normalizePath(path), timeout, lock);
        }
    
        /**
         * Expect a PUT request to the given path, discard the request body
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/webApplication/customized/groovy/src/main/java/org/gradle/HelloServlet.java

    package org.gradle;
    
    import java.io.*;
    
    import javax.servlet.http.*;
    import javax.servlet.*;
    
    public class HelloServlet extends HttpServlet {
        public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
            PrintWriter out = res.getWriter();
            out.print("Hello Gradle");
            out.close();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 360 bytes
    - Viewed (0)
Back to top