Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for setDispatcher (0.17 sec)

  1. samples/slack/src/main/java/okhttp3/slack/OAuthSessionFactory.java

        this.slackApi = slackApi;
      }
    
      public void start() throws Exception {
        if (mockWebServer != null) throw new IllegalStateException();
    
        mockWebServer = new MockWebServer();
        mockWebServer.setDispatcher(this);
        mockWebServer.start(slackApi.port);
      }
    
      public HttpUrl newAuthorizeUrl(String scopes, String team, Listener listener) {
        if (mockWebServer == null) throw new IllegalStateException();
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Aug 12 07:26:27 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  2. samples/static-server/src/main/java/okhttp3/sample/SampleServer.java

        this.root = root;
        this.port = port;
      }
    
      public void run() throws IOException {
        MockWebServer server = new MockWebServer();
        server.useHttps(sslContext.getSocketFactory(), false);
        server.setDispatcher(this);
        server.start(port);
      }
    
      @Override public MockResponse dispatch(RecordedRequest request) {
        String path = request.getPath();
        try {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Jan 02 02:50:44 UTC 2019
    - 4.7K bytes
    - Viewed (0)
  3. mockwebserver/README.md

            }
            return new MockResponse().setResponseCode(404);
        }
    };
    server.setDispatcher(dispatcher);
    ```
    
    
    ### Download
    
    ```kotlin
    testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
    ```
    
    ### License
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/api/mockwebserver.api

    	public final fun noClientAuth ()V
    	public final fun protocols ()Ljava/util/List;
    	public final fun requestClientAuth ()V
    	public final fun requireClientAuth ()V
    	public final fun setBodyLimit (J)V
    	public final fun setDispatcher (Lokhttp3/mockwebserver/Dispatcher;)V
    	public final fun setProtocolNegotiationEnabled (Z)V
    	public final fun setProtocols (Ljava/util/List;)V
    	public final fun setServerSocketFactory (Ljavax/net/ServerSocketFactory;)V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jul 22 12:28:51 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  5. mockwebserver/api/mockwebserver3.api

    	public final fun getStarted ()Z
    	public final fun noClientAuth ()V
    	public final fun requestClientAuth ()V
    	public final fun requireClientAuth ()V
    	public final fun setBodyLimit (J)V
    	public final fun setDispatcher (Lmockwebserver3/Dispatcher;)V
    	public final fun setProtocolNegotiationEnabled (Z)V
    	public final fun setProtocols (Ljava/util/List;)V
    	public final fun setServerSocketFactory (Ljavax/net/ServerSocketFactory;)V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 03 21:59:45 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

       * served by the first enqueued response; the second request by the second enqueued response; and
       * so on.
       *
       * @throws ClassCastException if the default dispatcher has been
       * replaced with [setDispatcher][dispatcher].
       */
      fun enqueue(response: MockResponse) = (dispatcher as QueueDispatcher).enqueueResponse(response)
    
      /**
       * Starts the server on the loopback interface for the given port.
       *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java

    import org.codehaus.plexus.components.secdispatcher.DispatcherMeta;
    import org.codehaus.plexus.components.secdispatcher.SecDispatcher;
    import org.codehaus.plexus.components.secdispatcher.model.Config;
    import org.codehaus.plexus.components.secdispatcher.model.ConfigProperty;
    import org.codehaus.plexus.components.secdispatcher.model.SettingsSecurity;
    import org.jline.consoleui.elements.ConfirmChoice;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Decrypt.java

        @Inject
        public Decrypt(MessageBuilderFactory messageBuilderFactory, SecDispatcher secDispatcher) {
            super(messageBuilderFactory, secDispatcher);
        }
    
        @Override
        protected int doExecute(DefaultEncryptInvoker.LocalContext context) throws Exception {
            String encrypted = context.reader.readLine("Enter the password to decrypt: ");
            if (secDispatcher.isAnyEncryptedString(encrypted)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/crypto/MavenSecDispatcher.java

    import java.util.Map;
    
    import org.apache.maven.api.Constants;
    import org.codehaus.plexus.components.secdispatcher.Dispatcher;
    import org.codehaus.plexus.components.secdispatcher.SecDispatcher;
    import org.codehaus.plexus.components.secdispatcher.internal.DefaultSecDispatcher;
    
    /**
     * This class implements "Maven specific" {@link SecDispatcher}.
     *
     * @deprecated since 4.0.0
     */
    @Named
    @Singleton
    @Deprecated(since = "4.0.0")
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/ConfiguredGoalSupport.java

    import org.codehaus.plexus.components.secdispatcher.SecDispatcher;
    
    import static org.apache.maven.cling.invoker.mvnenc.DefaultEncryptInvoker.ERROR;
    
    /**
     * The support class for goal implementations that requires valid/workable config.
     */
    public abstract class ConfiguredGoalSupport extends GoalSupport {
        protected ConfiguredGoalSupport(MessageBuilderFactory messageBuilderFactory, SecDispatcher secDispatcher) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top