- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 48 for getHeaders (0.07 sec)
-
src/test/java/jcifs/http/NetworkExplorerTest.java
* Test doGet with no authentication - should return 401 */ @Test void testDoGet_NoAuthentication() throws Exception { initializeNetworkExplorer(false, "jCIFS"); when(request.getHeader("Authorization")).thenReturn(null); networkExplorer.doGet(request, response); verify(response).setStatus(HttpServletResponse.SC_UNAUTHORIZED);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/VirtualHostHelperTest.java
return new Tuple3[] { new Tuple3<>("Host", "example.com", "site1") }; } }); MockletHttpServletRequest request = getMockRequest(); // Don't add any headers, so getHeader will return null String result = virtualHostHelper.processVirtualHost(s -> "processed_" + s, "default"); assertEquals("default", result); } public void test_getVirtualHostPaths() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 11.5K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractor.java
*/ protected static Date getReceivedDate(final Message message) throws MessagingException { final Date today = new Date(); final String[] received = message.getHeader("received"); if (received != null) { for (final String v : received) { String dateStr = null; try { dateStr = getDateString(v);Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 12.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/UserInfoHelper.java
if (cookieSecure != null) { return cookieSecure; } return LaRequestUtil.getOptionalRequest().map(req -> { String forwardedProto = req.getHeader("X-Forwarded-Proto"); if ("https".equalsIgnoreCase(forwardedProto)) { return true; } return req.isSecure(); }).orElse(false); } /**
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 14.9K bytes - Viewed (0) -
src/main/java/jcifs/http/NtlmServlet.java
Address dc; final boolean offerBasic = this.enableBasic && (this.insecureBasic || request.isSecure()); final String msg = request.getHeader("Authorization"); if (msg != null && (msg.startsWith("NTLM ") || offerBasic && msg.startsWith("Basic "))) { if (this.loadBalance) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.1K bytes - Viewed (1) -
src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java
final CurlRequest curlRequest = ComponentUtil.getCurlHelper().request(httpMethod, path); final String contentType = request.getHeader("Content-Type"); if (StringUtil.isNotEmpty(contentType)) { curlRequest.header("Content-Type", contentType); } request.getParameterMap().entrySet().stream().forEach(entry -> {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 12.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/RoleQueryHelper.java
* @param roleSet The set of roles. */ protected void processHeader(final HttpServletRequest request, final Set<String> roleSet) { final String parameter = request.getHeader(headerKey); if (logger.isDebugEnabled()) { logger.debug("{}:{}", headerKey, parameter); } if (StringUtil.isNotEmpty(parameter)) {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NtlmHttpFilter.java
final boolean skipAuthentication) throws IOException, ServletException { UniAddress dc; String msg; NtlmPasswordAuthentication ntlm = null; msg = req.getHeader("Authorization"); final boolean offerBasic = enableBasic && (insecureBasic || req.isSecure()); if (msg != null && (msg.startsWith("NTLM ") || offerBasic && msg.startsWith("Basic "))) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/api/json/SearchApiManager.java
} final SearchHelper searchHelper = ComponentUtil.getSearchHelper(); final FessConfig fessConfig = ComponentUtil.getFessConfig(); if (!fessConfig.isAcceptedSearchReferer(request.getHeader("referer"))) { writeJsonResponse(HttpServletResponse.SC_BAD_REQUEST, escapeJsonKeyValue(MESSAGE_FIELD, "Referer is invalid.")); return; } if (!fessConfig.isApiSearchScroll()) {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 54.6K bytes - Viewed (1) -
src/main/java/org/codelibs/curl/CurlRequest.java
public void accept(final HttpURLConnection con) { try { response.setEncoding(encoding); response.setHttpStatusCode(con.getResponseCode()); response.setHeaders(con.getHeaderFields()); } catch (final Exception e) { throw new CurlException("Failed to access the response.", e); } writeContent(() -> { try {
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat Jul 05 01:38:18 UTC 2025 - 17.8K bytes - Viewed (0)