Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 139 for getClient (0.06 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactoryWrapper.java

        @Override
        public void addClient(final List<String> regexList, final CrawlerClient client) {
            factory.addClient(regexList, client);
        }
    
        @Override
        public CrawlerClient getClient(final String url) {
            return factory.getClient(url);
        }
    
        @Override
        public void setClientMap(final Map<Pattern, CrawlerClient> clientMap) {
            factory.setClientMap(clientMap);
        }
    
        @Override
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/CrawlerClientFactoryTest.java

            client = clientFactory.getClient(url);
            assertNotNull(client);
            assertTrue(client instanceof FileSystemClient);
    
            url = "smb:/home/hoge";
            client = clientFactory.getClient(url);
            assertNotNull(client);
            assertTrue(client instanceof SmbClient);
    
            url = "smb1:/home/hoge";
            client = clientFactory.getClient(url);
            assertNotNull(client);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchDataService.java

                    response = getClient().get(c -> c.prepareSearchScroll(sid).setScroll(new TimeValue(scrollTimeout)).execute());
                    if (!scrollId.equals(response.getScrollId())) {
                        getClient().clearScroll(scrollId);
                    }
                    scrollId = response.getScrollId();
                }
            } finally {
                getClient().clearScroll(scrollId);
            }
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactory.java

                if (StringUtil.isNotBlank(regex)) {
                    clientMap.put(Pattern.compile(regex), client);
                }
            }
        }
    
        public CrawlerClient getClient(final String urlKey) {
            if (StringUtil.isBlank(urlKey)) {
                return null;
            }
    
            for (final Map.Entry<Pattern, CrawlerClient> entry : clientMap.entrySet()) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. tests/test_regex_deprecated_params.py

        return client
    
    
    @needs_py310
    def test_query_params_str_validations_no_query():
        client = get_client()
        response = client.get("/items/")
        assert response.status_code == 200
        assert response.json() == "Hello World"
    
    
    @needs_py310
    def test_query_params_str_validations_q_fixedquery():
        client = get_client()
        response = client.get("/items/", params={"q": "fixedquery"})
        assert response.status_code == 200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_conditional_openapi/test_tutorial001.py

        client = get_client()
        response = client.get("/openapi.json")
        assert response.status_code == 404, response.text
        response = client.get("/docs")
        assert response.status_code == 404, response.text
        response = client.get("/redoc")
        assert response.status_code == 404, response.text
    
    
    @needs_pydanticv2
    def test_root():
        client = get_client()
        response = client.get("/")
        assert response.status_code == 200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. tests/test_regex_deprecated_body.py

        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_no_query():
        client = get_client()
        response = client.post("/items/")
        assert response.status_code == 200
        assert response.json() == "Hello World"
    
    
    @needs_py310
    def test_q_fixedquery():
        client = get_client()
        response = client.post("/items/", data={"q": "fixedquery"})
        assert response.status_code == 200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. samples/tlssurvey/src/main/kotlin/okhttp3/survey/ssllabs/SslLabsApi.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.survey.ssllabs
    
    import retrofit2.http.GET
    
    interface SslLabsApi {
      @GET("getClients")
      suspend fun clients(): List<UserAgentCapabilities>
    
      companion object {
        const val BASE_URL = "https://api.ssllabs.com/api/v3/"
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Apr 02 01:44:15 UTC 2024
    - 844 bytes
    - Viewed (0)
  9. tests/test_tutorial/test_additional_status_codes/test_tutorial001_py310.py

    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.additional_status_codes.tutorial001_py310 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_update(client: TestClient):
        response = client.put("/items/foo", json={"name": "Wrestlers"})
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 738 bytes
    - Viewed (0)
  10. tests/test_tutorial/test_websockets/test_tutorial003_py39.py

        return app
    
    
    @pytest.fixture(name="html")
    def get_html():
        from docs_src.websockets.tutorial003_py39 import html
    
        return html
    
    
    @pytest.fixture(name="client")
    def get_client(app: FastAPI):
        client = TestClient(app)
    
        return client
    
    
    @needs_py39
    def test_get(client: TestClient, html: str):
        response = client.get("/")
        assert response.text == html
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top