Source code
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_WebRequestWrappers_h
#define mozilla_java_WebRequestWrappers_h
#ifndef MOZ_PREPROCESSOR
#include "mozilla/jni/Refs.h"
#endif
namespace mozilla {
namespace java {
class WebRequest : public mozilla::jni::ObjectBase<WebRequest>
{
public:
static constexpr char name[] =
"org/mozilla/geckoview/WebRequest";
explicit WebRequest(const Context& ctx) : ObjectBase<WebRequest>(ctx) {}
class Builder;
struct New_t {
typedef WebRequest Owner;
typedef WebRequest::LocalRef ReturnType;
typedef WebRequest::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;
};
// WebRequest(String)
static auto New(mozilla::jni::String::Param) -> WebRequest::LocalRef;
struct New2_t {
typedef WebRequest Owner;
typedef WebRequest::LocalRef ReturnType;
typedef WebRequest::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "<init>";
static constexpr char signature[] =
"(Lorg/mozilla/geckoview/WebRequest$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;
};
// WebRequest(Builder)
static auto New(mozilla::jni::Object::Param) -> WebRequest::LocalRef;
static constexpr int32_t CACHE_MODE_DEFAULT = 1;
static constexpr int32_t CACHE_MODE_FIRST = 1;
static constexpr int32_t CACHE_MODE_FORCE_CACHE = 5;
static constexpr int32_t CACHE_MODE_LAST = 6;
static constexpr int32_t CACHE_MODE_NO_CACHE = 4;
static constexpr int32_t CACHE_MODE_NO_STORE = 2;
static constexpr int32_t CACHE_MODE_ONLY_IF_CACHED = 6;
static constexpr int32_t CACHE_MODE_RELOAD = 3;
struct BeConservative_t {
typedef WebRequest Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "beConservative";
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 BeConservative() const -> bool;
struct Body_t {
typedef WebRequest Owner;
typedef mozilla::jni::ByteBuffer::LocalRef ReturnType;
typedef mozilla::jni::ByteBuffer::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "body";
static constexpr char signature[] =
"Ljava/nio/ByteBuffer;";
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::ByteBuffer::LocalRef;
struct CacheMode_t {
typedef WebRequest Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "cacheMode";
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 CacheMode() const -> int32_t;
struct Method_t {
typedef WebRequest Owner;
typedef mozilla::jni::String::LocalRef ReturnType;
typedef mozilla::jni::String::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "method";
static constexpr char signature[] =
"Ljava/lang/String;";
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 Method() const -> mozilla::jni::String::LocalRef;
struct Referrer_t {
typedef WebRequest Owner;
typedef mozilla::jni::String::LocalRef ReturnType;
typedef mozilla::jni::String::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "referrer";
static constexpr char signature[] =
"Ljava/lang/String;";
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 Referrer() const -> mozilla::jni::String::LocalRef;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
class WebRequest::Builder : public mozilla::jni::ObjectBase<Builder>
{
public:
static constexpr char name[] =
"org/mozilla/geckoview/WebRequest$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/WebRequest$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;
};
// WebRequest.Builder addHeader(String, String)
auto AddHeader(mozilla::jni::String::Param, mozilla::jni::String::Param) const -> Builder::LocalRef;
struct BeConservative_t {
typedef Builder Owner;
typedef Builder::LocalRef ReturnType;
typedef Builder::Param SetterType;
typedef mozilla::jni::Args<
bool> Args;
static constexpr char name[] = "beConservative";
static constexpr char signature[] =
"(Z)Lorg/mozilla/geckoview/WebRequest$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;
};
// WebRequest.Builder beConservative(boolean)
auto BeConservative(bool) const -> Builder::LocalRef;
struct Body_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[] = "body";
static constexpr char signature[] =
"(Ljava/lang/String;)Lorg/mozilla/geckoview/WebRequest$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;
};
// WebRequest.Builder body(String)
auto Body(mozilla::jni::String::Param) const -> Builder::LocalRef;
struct Body2_t {
typedef Builder Owner;
typedef Builder::LocalRef ReturnType;
typedef Builder::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::ByteBuffer::Param> Args;
static constexpr char name[] = "body";
static constexpr char signature[] =
"(Ljava/nio/ByteBuffer;)Lorg/mozilla/geckoview/WebRequest$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;
};
// WebRequest.Builder body(ByteBuffer)
auto Body(mozilla::jni::ByteBuffer::Param) const -> Builder::LocalRef;
struct Build_t {
typedef Builder Owner;
typedef WebRequest::LocalRef ReturnType;
typedef WebRequest::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "build";
static constexpr char signature[] =
"()Lorg/mozilla/geckoview/WebRequest;";
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;
};
// WebRequest build()
auto Build() const -> WebRequest::LocalRef;
struct CacheMode_t {
typedef Builder Owner;
typedef Builder::LocalRef ReturnType;
typedef Builder::Param SetterType;
typedef mozilla::jni::Args<
int32_t> Args;
static constexpr char name[] = "cacheMode";
static constexpr char signature[] =
"(I)Lorg/mozilla/geckoview/WebRequest$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;
};
// WebRequest.Builder cacheMode(int)
auto CacheMode(int32_t) const -> Builder::LocalRef;
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/WebRequest$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;
};
// WebRequest.Builder header(String, String)
auto Header(mozilla::jni::String::Param, mozilla::jni::String::Param) const -> Builder::LocalRef;
struct Method_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[] = "method";
static constexpr char signature[] =
"(Ljava/lang/String;)Lorg/mozilla/geckoview/WebRequest$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;
};
// WebRequest.Builder method(String)
auto Method(mozilla::jni::String::Param) const -> Builder::LocalRef;
struct Referrer_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[] = "referrer";
static constexpr char signature[] =
"(Ljava/lang/String;)Lorg/mozilla/geckoview/WebRequest$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;
};
// WebRequest.Builder referrer(String)
auto Referrer(mozilla::jni::String::Param) 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/WebRequest$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;
};
// WebRequest.Builder uri(String)
auto Uri(mozilla::jni::String::Param) const -> Builder::LocalRef;
struct MBeConservative_t {
typedef Builder Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "mBeConservative";
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 MBeConservative() const -> bool;
auto MBeConservative(bool) const -> void;
struct MCacheMode_t {
typedef Builder Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "mCacheMode";
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 MCacheMode() const -> int32_t;
auto MCacheMode(int32_t) const -> void;
struct MMethod_t {
typedef Builder Owner;
typedef mozilla::jni::String::LocalRef ReturnType;
typedef mozilla::jni::String::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "mMethod";
static constexpr char signature[] =
"Ljava/lang/String;";
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 MMethod() const -> mozilla::jni::String::LocalRef;
auto MMethod(mozilla::jni::String::Param) const -> void;
struct MReferrer_t {
typedef Builder Owner;
typedef mozilla::jni::String::LocalRef ReturnType;
typedef mozilla::jni::String::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "mReferrer";
static constexpr char signature[] =
"Ljava/lang/String;";
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 MReferrer() const -> mozilla::jni::String::LocalRef;
auto MReferrer(mozilla::jni::String::Param) const -> void;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
} /* java */
} /* mozilla */
#endif // mozilla_java_WebRequestWrappers_h