HttpURLConnection.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_net_HttpURLConnection__
  3. #define __java_net_HttpURLConnection__
  4. #pragma interface
  5. #include <java/net/URLConnection.h>
  6. extern "Java"
  7. {
  8. namespace java
  9. {
  10. namespace net
  11. {
  12. class HttpURLConnection;
  13. class URL;
  14. }
  15. namespace security
  16. {
  17. class Permission;
  18. }
  19. }
  20. }
  21. class java::net::HttpURLConnection : public ::java::net::URLConnection
  22. {
  23. public: // actually protected
  24. HttpURLConnection(::java::net::URL *);
  25. public:
  26. virtual void disconnect() = 0;
  27. virtual jboolean usingProxy() = 0;
  28. static void setFollowRedirects(jboolean);
  29. static jboolean getFollowRedirects();
  30. virtual jboolean getInstanceFollowRedirects();
  31. virtual void setInstanceFollowRedirects(jboolean);
  32. virtual void setRequestMethod(::java::lang::String *);
  33. virtual ::java::lang::String * getRequestMethod();
  34. virtual jint getResponseCode();
  35. virtual ::java::lang::String * getResponseMessage();
  36. private:
  37. void getResponseVals();
  38. public:
  39. virtual ::java::security::Permission * getPermission();
  40. virtual ::java::io::InputStream * getErrorStream();
  41. virtual jlong getHeaderFieldDate(::java::lang::String *, jlong);
  42. public: // actually package-private
  43. static const jint HTTP_CONTINUE = 100;
  44. public:
  45. static const jint HTTP_OK = 200;
  46. static const jint HTTP_CREATED = 201;
  47. static const jint HTTP_ACCEPTED = 202;
  48. static const jint HTTP_NOT_AUTHORITATIVE = 203;
  49. static const jint HTTP_NO_CONTENT = 204;
  50. static const jint HTTP_RESET = 205;
  51. static const jint HTTP_PARTIAL = 206;
  52. static const jint HTTP_MULT_CHOICE = 300;
  53. static const jint HTTP_MOVED_PERM = 301;
  54. static const jint HTTP_MOVED_TEMP = 302;
  55. static const jint HTTP_SEE_OTHER = 303;
  56. static const jint HTTP_NOT_MODIFIED = 304;
  57. static const jint HTTP_USE_PROXY = 305;
  58. static const jint HTTP_BAD_REQUEST = 400;
  59. static const jint HTTP_UNAUTHORIZED = 401;
  60. static const jint HTTP_PAYMENT_REQUIRED = 402;
  61. static const jint HTTP_FORBIDDEN = 403;
  62. static const jint HTTP_NOT_FOUND = 404;
  63. static const jint HTTP_BAD_METHOD = 405;
  64. static const jint HTTP_NOT_ACCEPTABLE = 406;
  65. static const jint HTTP_PROXY_AUTH = 407;
  66. static const jint HTTP_CLIENT_TIMEOUT = 408;
  67. static const jint HTTP_CONFLICT = 409;
  68. static const jint HTTP_GONE = 410;
  69. static const jint HTTP_LENGTH_REQUIRED = 411;
  70. static const jint HTTP_PRECON_FAILED = 412;
  71. static const jint HTTP_ENTITY_TOO_LARGE = 413;
  72. static const jint HTTP_REQ_TOO_LONG = 414;
  73. static const jint HTTP_UNSUPPORTED_TYPE = 415;
  74. static const jint HTTP_SERVER_ERROR = 500;
  75. static const jint HTTP_INTERNAL_ERROR = 500;
  76. static const jint HTTP_NOT_IMPLEMENTED = 501;
  77. static const jint HTTP_BAD_GATEWAY = 502;
  78. static const jint HTTP_UNAVAILABLE = 503;
  79. static const jint HTTP_GATEWAY_TIMEOUT = 504;
  80. static const jint HTTP_VERSION = 505;
  81. private:
  82. static jboolean followRedirects;
  83. static ::java::lang::String * valid_methods;
  84. public: // actually protected
  85. ::java::lang::String * __attribute__((aligned(__alignof__( ::java::net::URLConnection)))) method;
  86. jint responseCode;
  87. ::java::lang::String * responseMessage;
  88. jboolean instanceFollowRedirects;
  89. private:
  90. jboolean gotResponseVals;
  91. public:
  92. static ::java::lang::Class class$;
  93. };
  94. #endif // __java_net_HttpURLConnection__