Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 55 for adapters (0.16 seconds)

  1. src/main/java/org/codelibs/core/log/Logger.java

            initialized = true;
        }
    
        /**
         * Returns the logger adapter factory.
         * <p>
         * Detects available logging frameworks in the following order:
         * 1. SLF4J (if available)
         * 2. Commons Logging (if available)
         * 3. java.util.logging (fallback)
         * </p>
         *
         * @return the logger adapter factory
         */
        protected static LoggerAdapterFactory getLoggerAdapterFactory() {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 13.5K bytes
    - Click Count (0)
  2. 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> {
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  3. 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 {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  4. samples/slack/src/main/java/okhttp3/slack/SlackApi.java

        Request request = new Request.Builder()
            .url(url)
            .build();
        Call call = httpClient.newCall(request);
        try (Response response = call.execute()) {
          JsonAdapter<OAuthSession> jsonAdapter = moshi.adapter(OAuthSession.class);
          return jsonAdapter.fromJson(response.body().source());
        }
      }
    
      /** See https://api.slack.com/methods/rtm.start. */
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jul 06 19:30:55 GMT 2018
    - 4.4K bytes
    - Click Count (0)
  5. 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> {
    
        /** 反復子 */
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/core/log/JclLoggerAdapter.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.log;
    
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    
    /**
     * Logger adapter for Jakarta Commons Logging.
     *
     * @author koichik
     */
    class JclLoggerAdapter implements LoggerAdapter {
    
        protected final String sourceClass;
    
        protected final Log logger;
    
        /**
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  7. 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();
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun May 22 01:29:42 GMT 2016
    - 1.8K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/core/log/JulLoggerAdapter.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.log;
    
    import java.util.logging.Level;
    
    /**
     * Adapter that uses java.util.logging loggers.
     *
     * @author koichik
     */
    class JulLoggerAdapter implements LoggerAdapter {
    
        protected final String sourceClass;
    
        protected final java.util.logging.Logger logger;
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  9. 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 {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  10. 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:
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 6.4K bytes
    - Click Count (0)
Back to Top