Copy as Markdown

Other Tools

// GENERATED CODE
// Generated by the Java program at /build/annotationProcessors at compile time
// from annotations on Java methods. To update, change the annotations on the
// corresponding Java methods and rerun the build. Manually updating this file
// will cause your build to fail.
#ifndef mozilla_java_WebResponseWrappers_h
#define mozilla_java_WebResponseWrappers_h
#ifndef MOZ_PREPROCESSOR
#include "mozilla/jni/Refs.h"
#endif
namespace mozilla {
namespace java {
class WebResponse : public mozilla::jni::ObjectBase<WebResponse>
{
public:
static constexpr char name[] =
"org/mozilla/geckoview/WebResponse";
explicit WebResponse(const Context& ctx) : ObjectBase<WebResponse>(ctx) {}
class Builder;
struct New_t {
typedef WebResponse Owner;
typedef WebResponse::LocalRef ReturnType;
typedef WebResponse::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "<init>";
static constexpr char signature[] =
"(Lorg/mozilla/geckoview/WebResponse$Builder;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// WebResponse(Builder)
static auto New(mozilla::jni::Object::Param) -> WebResponse::LocalRef;
struct SetReadTimeoutMillis_t {
typedef WebResponse Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
int64_t> Args;
static constexpr char name[] = "setReadTimeoutMillis";
static constexpr char signature[] =
"(J)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setReadTimeoutMillis(long)
auto SetReadTimeoutMillis(int64_t) const -> void;
static const int64_t DEFAULT_READ_TIMEOUT_MS = 30000;
struct Body_t {
typedef WebResponse Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "body";
static constexpr char signature[] =
"Ljava/io/InputStream;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto Body() const -> mozilla::jni::Object::LocalRef;
struct Certificate_t {
typedef WebResponse Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "certificate";
static constexpr char signature[] =
"Ljava/security/cert/X509Certificate;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto Certificate() const -> mozilla::jni::Object::LocalRef;
struct IsSecure_t {
typedef WebResponse Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "isSecure";
static constexpr char signature[] =
"Z";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto IsSecure() const -> bool;
struct Redirected_t {
typedef WebResponse Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "redirected";
static constexpr char signature[] =
"Z";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto Redirected() const -> bool;
struct RequestExternalApp_t {
typedef WebResponse Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "requestExternalApp";
static constexpr char signature[] =
"Z";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto RequestExternalApp() const -> bool;
struct SkipConfirmation_t {
typedef WebResponse Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "skipConfirmation";
static constexpr char signature[] =
"Z";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto SkipConfirmation() const -> bool;
struct StatusCode_t {
typedef WebResponse Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "statusCode";
static constexpr char signature[] =
"I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto StatusCode() const -> int32_t;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
class WebResponse::Builder : public mozilla::jni::ObjectBase<Builder>
{
public:
static constexpr char name[] =
"org/mozilla/geckoview/WebResponse$Builder";
explicit Builder(const Context& ctx) : ObjectBase<Builder>(ctx) {}
struct New_t {
typedef Builder Owner;
typedef Builder::LocalRef ReturnType;
typedef Builder::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "<init>";
static constexpr char signature[] =
"(Ljava/lang/String;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// Builder(String)
static auto New(mozilla::jni::String::Param) -> Builder::LocalRef;
struct AddHeader2_t {
typedef Builder Owner;
typedef Builder::LocalRef ReturnType;
typedef Builder::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
mozilla::jni::String::Param> Args;
static constexpr char name[] = "addHeader";
static constexpr char signature[] =
"(Ljava/lang/String;Ljava/lang/String;)Lorg/mozilla/geckoview/WebResponse$Builder;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// WebResponse.Builder addHeader(String, String)
auto AddHeader(mozilla::jni::String::Param, mozilla::jni::String::Param) const -> Builder::LocalRef;
struct Body_t {
typedef Builder Owner;
typedef Builder::LocalRef ReturnType;
typedef Builder::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "body";
static constexpr char signature[] =
"(Ljava/io/InputStream;)Lorg/mozilla/geckoview/WebResponse$Builder;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// WebResponse.Builder body(InputStream)
auto Body(mozilla::jni::Object::Param) const -> Builder::LocalRef;
struct Build_t {
typedef Builder Owner;
typedef WebResponse::LocalRef ReturnType;
typedef WebResponse::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "build";
static constexpr char signature[] =
"()Lorg/mozilla/geckoview/WebResponse;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// WebResponse build()
auto Build() const -> WebResponse::LocalRef;
struct Certificate_t {
typedef Builder Owner;
typedef Builder::LocalRef ReturnType;
typedef Builder::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "certificate";
static constexpr char signature[] =
"(Ljava/security/cert/X509Certificate;)Lorg/mozilla/geckoview/WebResponse$Builder;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// WebResponse.Builder certificate(X509Certificate)
auto Certificate(mozilla::jni::Object::Param) const -> Builder::LocalRef;
struct CertificateBytes_t {
typedef Builder Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::ByteArray::Param> Args;
static constexpr char name[] = "certificateBytes";
static constexpr char signature[] =
"([B)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void certificateBytes(byte[])
auto CertificateBytes(mozilla::jni::ByteArray::Param) const -> nsresult;
struct Header2_t {
typedef Builder Owner;
typedef Builder::LocalRef ReturnType;
typedef Builder::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
mozilla::jni::String::Param> Args;
static constexpr char name[] = "header";
static constexpr char signature[] =
"(Ljava/lang/String;Ljava/lang/String;)Lorg/mozilla/geckoview/WebResponse$Builder;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// WebResponse.Builder header(String, String)
auto Header(mozilla::jni::String::Param, mozilla::jni::String::Param) const -> Builder::LocalRef;
struct IsSecure_t {
typedef Builder Owner;
typedef Builder::LocalRef ReturnType;
typedef Builder::Param SetterType;
typedef mozilla::jni::Args<
bool> Args;
static constexpr char name[] = "isSecure";
static constexpr char signature[] =
"(Z)Lorg/mozilla/geckoview/WebResponse$Builder;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// WebResponse.Builder isSecure(boolean)
auto IsSecure(bool) const -> Builder::LocalRef;
struct Redirected_t {
typedef Builder Owner;
typedef Builder::LocalRef ReturnType;
typedef Builder::Param SetterType;
typedef mozilla::jni::Args<
bool> Args;
static constexpr char name[] = "redirected";
static constexpr char signature[] =
"(Z)Lorg/mozilla/geckoview/WebResponse$Builder;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// WebResponse.Builder redirected(boolean)
auto Redirected(bool) const -> Builder::LocalRef;
struct RequestExternalApp_t {
typedef Builder Owner;
typedef Builder::LocalRef ReturnType;
typedef Builder::Param SetterType;
typedef mozilla::jni::Args<
bool> Args;
static constexpr char name[] = "requestExternalApp";
static constexpr char signature[] =
"(Z)Lorg/mozilla/geckoview/WebResponse$Builder;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// WebResponse.Builder requestExternalApp(boolean)
auto RequestExternalApp(bool) const -> Builder::LocalRef;
struct SkipConfirmation_t {
typedef Builder Owner;
typedef Builder::LocalRef ReturnType;
typedef Builder::Param SetterType;
typedef mozilla::jni::Args<
bool> Args;
static constexpr char name[] = "skipConfirmation";
static constexpr char signature[] =
"(Z)Lorg/mozilla/geckoview/WebResponse$Builder;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// WebResponse.Builder skipConfirmation(boolean)
auto SkipConfirmation(bool) const -> Builder::LocalRef;
struct StatusCode_t {
typedef Builder Owner;
typedef Builder::LocalRef ReturnType;
typedef Builder::Param SetterType;
typedef mozilla::jni::Args<
int32_t> Args;
static constexpr char name[] = "statusCode";
static constexpr char signature[] =
"(I)Lorg/mozilla/geckoview/WebResponse$Builder;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// WebResponse.Builder statusCode(int)
auto StatusCode(int32_t) const -> Builder::LocalRef;
struct Uri2_t {
typedef Builder Owner;
typedef Builder::LocalRef ReturnType;
typedef Builder::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "uri";
static constexpr char signature[] =
"(Ljava/lang/String;)Lorg/mozilla/geckoview/WebResponse$Builder;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// WebResponse.Builder uri(String)
auto Uri(mozilla::jni::String::Param) const -> Builder::LocalRef;
struct MBody_t {
typedef Builder Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "mBody";
static constexpr char signature[] =
"Ljava/io/InputStream;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto MBody() const -> mozilla::jni::Object::LocalRef;
auto MBody(mozilla::jni::Object::Param) const -> void;
struct MCertificate_t {
typedef Builder Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "mCertificate";
static constexpr char signature[] =
"Ljava/security/cert/X509Certificate;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto MCertificate() const -> mozilla::jni::Object::LocalRef;
auto MCertificate(mozilla::jni::Object::Param) const -> void;
struct MIsSecure_t {
typedef Builder Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "mIsSecure";
static constexpr char signature[] =
"Z";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto MIsSecure() const -> bool;
auto MIsSecure(bool) const -> void;
struct MRedirected_t {
typedef Builder Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "mRedirected";
static constexpr char signature[] =
"Z";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto MRedirected() const -> bool;
auto MRedirected(bool) const -> void;
struct MRequestExternalApp_t {
typedef Builder Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "mRequestExternalApp";
static constexpr char signature[] =
"Z";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto MRequestExternalApp() const -> bool;
auto MRequestExternalApp(bool) const -> void;
struct MSkipConfirmation_t {
typedef Builder Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "mSkipConfirmation";
static constexpr char signature[] =
"Z";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto MSkipConfirmation() const -> bool;
auto MSkipConfirmation(bool) const -> void;
struct MStatusCode_t {
typedef Builder Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "mStatusCode";
static constexpr char signature[] =
"I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto MStatusCode() const -> int32_t;
auto MStatusCode(int32_t) const -> void;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
} /* java */
} /* mozilla */
#endif // mozilla_java_WebResponseWrappers_h