BaseUrlHandler Classe

  • java.lang.Object
    • com.microsoft.bot.restclient.interceptors.BaseUrlHandler

Implementazioni

okhttp3. intercettatore

public final class BaseUrlHandler
implements okhttp3.Interceptor

Gestisce le sostituzioni dinamiche sull'URL di base. Gli argomenti devono essere in coppia con la stringa nell'URL non elaborato per sostituire come sostituzioni[i] e la parte dinamica come sostituzioni[i+1]. Ad esempio, {sottodominio}.microsoft.com può essere impostato dinamicamente impostando l'intestazione x-ms-parameterized-host: "{subdomain}, azure"

Riepilogo dei costruttori

Costruttore Descrizione
BaseUrlHandler()

Riepilogo dei metodi

Modificatore e tipo Metodo e descrizione
okhttp3.Response intercept(Interceptor.Chain chain)

Metodi ereditati da java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Dettagli costruttore

BaseUrlHandler

public BaseUrlHandler()

Dettagli metodo

intercept

public Response intercept(Interceptor.Chain chain)

Parametri:

chain

Genera un'eccezione:

java.io.IOException

Si applica a