- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 92 for adapter (0.04 sec)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt
* ``` */ private val attributeTypeAndValue: BasicDerAdapter<AttributeTypeAndValue> = Adapters.sequence( "AttributeTypeAndValue", Adapters.OBJECT_IDENTIFIER, Adapters.any( String::class to Adapters.UTF8_STRING, Nothing::class to Adapters.PRINTABLE_STRING, AnyValue::class to Adapters.ANY_VALUE, ), decompose = { listOf( it.type,
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 13.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/log/LoggerAdapter.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.core.log; /** * Adapter for using any logging framework. * * @author koichik */ interface LoggerAdapter { boolean isFatalEnabled(); void fatal(String message); void fatal(String message, Throwable t);Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 1.3K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt
@FromJson fun byteStringFromJson(json: String) = json.decodeHex() }, ).add(KotlinJsonAdapterFactory()) .build() private val STORY_JSON_ADAPTER = MOSHI.adapter(Story::class.java) private val fileSystem = FileSystem.SYSTEM private fun readStory(source: BufferedSource): Story = STORY_JSON_ADAPTER.fromJson(source)!! private fun readStory(file: Path): Story {Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.3K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt
/** Names leading to the current location in the ASN.1 document. */ private val path = mutableListOf<String>() /** * False unless we made a recursive call to [write] at the current stack frame. The explicit box * adapter can clear this to synthesize non-constructed values that are embedded in octet strings. */ var constructed = false fun write( name: String, tagClass: Int, tag: Long,
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 5.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/log/Logger.java
}); initialized = true; } /** * Returns the logger adapter factory. * <p> * If Commons Logging is available, returns a factory for using Commons Logging. * If not available, returns a factory for using java.util.logging logger. * </p> * * @return the logger adapter factory */ protected static LoggerAdapterFactory getLoggerAdapterFactory() {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 12.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/EnumerationIterator.java
import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.util.Enumeration; import java.util.Iterator; import org.codelibs.core.exception.ClUnsupportedOperationException; /** * Adapter to convert an {@link Enumeration} to an {@link Iterator}. * * @author shot * @param <T> the element type */ public class EnumerationIterator<T> implements Iterator<T> {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 2.2K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/ParseResponseWithMoshi.java
public final class ParseResponseWithMoshi { private final OkHttpClient client = new OkHttpClient(); private final Moshi moshi = new Moshi.Builder().build(); private final JsonAdapter<Gist> gistJsonAdapter = moshi.adapter(Gist.class); public void run() throws Exception { Request request = new Request.Builder() .url("https://api.github.com/gists/c2a7c39532239ff261be") .build();Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sun May 22 01:29:42 UTC 2016 - 1.8K bytes - Viewed (0) -
samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java
private static final Moshi MOSHI = new Moshi.Builder().build(); private static final JsonAdapter<List<Contributor>> CONTRIBUTORS_JSON_ADAPTER = MOSHI.adapter( Types.newParameterizedType(List.class, Contributor.class)); static class Contributor { String login; int contributions; } public static void main(String... args) throws Exception {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Apr 05 03:30:42 UTC 2024 - 2.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/IteratorEnumeration.java
*/ package org.codelibs.core.collection; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.util.Enumeration; import java.util.Iterator; /** * Adapter to convert an {@link Iterator} to an {@link Enumeration}. * * @author higa * @param <T> the element type */ public class IteratorEnumeration<T> implements Enumeration<T> { /** 反復子 */Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 1.8K bytes - Viewed (0) -
docs/changelogs/changelog_1x.md
* Fix a bug in `Content-Length` reporting for gzipped streams in the Apache HTTP client adapter. (thanks kwuollett) * Work around the Alcatel `getByInetAddress` bug (thanks k.kocel) * Be more aggressive about testing pooled sockets before reuse. (thanks warpspin) * Include `Content-Type` and `Content-Encoding` in the Apache HTTP client adapter. (thanks kwuollett) * Add a media type class to OkHttp. * Change custom header prefix:Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 6.4K bytes - Viewed (0)