Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for setReader (0.12 sec)

  1. src/test/java/org/codelibs/opensearch/extension/analysis/ReloadableKuromojiTokenizerFactory.java

                        }
                    }
                }
    
                final Reader inputPending = getInputPending();
                if (inputPending != ILLEGAL_STATE_READER) {
                    tokenizer.setReader(inputPending);
                }
                tokenizer.reset();
            }
    
            @Override
            public boolean incrementToken() throws IOException {
                return tokenizer.incrementToken();
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

      }
    
      fun setHeader(
        name: String,
        value: Any,
      ) = apply {
        removeHeader(name)
        addHeader(name, value)
      }
    
      fun removeHeader(name: String) =
        apply {
          headersBuilder.removeAll(name)
        }
    
      fun getBody(): Buffer? = body?.clone()
    
      fun setBody(body: Buffer) =
        apply {
          setHeader("Content-Length", body.size)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

        mockResponse = mockResponse.addHeader("")
        mockResponse = mockResponse.addHeader("", "")
        mockResponse = mockResponse.addHeaderLenient("", Any())
        mockResponse = mockResponse.setHeader("", Any())
        mockResponse.headers = headersOf()
        mockResponse.trailers = headersOf()
        mockResponse = mockResponse.removeHeader("")
        var body: Buffer? = mockResponse.getBody()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

                    if (StringUtil.isBlank(responseContentType)) {
                        response.setHeader("Content-Type", "application/json");
                    } else {
                        response.setHeader("Content-Type", responseContentType);
                    }
                    CopyUtil.copy(in, out);
                } catch (final ClientAbortException e) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Aug 15 08:29:24 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

      }
    
      @Test
      @Throws(IOException::class)
      fun wrongConnectionHeader() {
        webServer.enqueue(
          MockResponse.Builder()
            .code(101)
            .setHeader("Upgrade", "websocket")
            .setHeader("Connection", "Downgrade")
            .setHeader("Sec-WebSocket-Accept", "ujmZX4KXZqjwy6vi1aQFH5p4Ygk=")
            .build(),
        )
        webServer.enqueue(
          MockResponse.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  6. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

      }
    
      @Test
      fun event() {
        server.enqueue(
          MockResponse.Builder()
            .body(
              """
              |data: hey
              |
              |
              """.trimMargin(),
            ).setHeader("content-type", "text/event-stream")
            .build(),
        )
        val source = newEventSource()
        assertThat(source.request().url.encodedPath).isEqualTo("/")
        listener.assertOpen()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

        /**
         * Return the comment header.
         *
         * @return the comment header
         */
        public List<String> getHeader() {
            return header;
        }
    
        /**
         * Set the comment header.
         *
         * @param header the header to use
         */
        public void setHeader(List<String> header) {
            this.header = header;
        }
    
        /**
         * Return the comment footer.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

            }
        }
    
        @Override
        protected void writeHeaders(final HttpServletResponse response) {
            ComponentUtil.getFessConfig().getApiJsonResponseHeaderList().forEach(e -> response.setHeader(e.getFirst(), e.getSecond()));
        }
    
        protected void writeJsonResponse(final int status, final Throwable t) {
            final Supplier<String> stacktraceString = () -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  9. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        val response =
          MockResponse()
            .clearHeaders()
            .addHeader("Cookie: s=square")
            .addHeader("Cookie: a=android")
            .addHeader("Cookies: delicious")
        response.setHeader("cookie", "r=robot")
        assertThat(headersToList(response))
          .containsExactly("Cookies: delicious", "cookie: r=robot")
      }
    
      @Test
      fun mockResponseSetHeaders() {
        val response =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/WholeOperationTimeoutTest.kt

        server.enqueue(
          MockResponse.Builder()
            .code(HttpURLConnection.HTTP_MOVED_TEMP)
            .setHeader("Location", "/b")
            .headersDelay(100, TimeUnit.MILLISECONDS)
            .build(),
        )
        server.enqueue(
          MockResponse.Builder()
            .code(HttpURLConnection.HTTP_MOVED_TEMP)
            .setHeader("Location", "/c")
            .headersDelay(100, TimeUnit.MILLISECONDS)
            .build(),
        )
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top