Back to index

nordugrid-arc-nox  1.1.0~rc6
ClientHTTP.java
Go to the documentation of this file.
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 1.3.36
00004  *
00005  * Do not make changes to this file unless you know what you are doing--modify
00006  * the SWIG interface file instead.
00007  * ----------------------------------------------------------------------------- */
00008 
00009 package nordugrid.arc;
00010 
00011 public class ClientHTTP extends ClientTCP {
00012   private long swigCPtr;
00013 
00014   protected ClientHTTP(long cPtr, boolean cMemoryOwn) {
00015     super(arcJNI.SWIGClientHTTPUpcast(cPtr), cMemoryOwn);
00016     swigCPtr = cPtr;
00017   }
00018 
00019   protected static long getCPtr(ClientHTTP obj) {
00020     return (obj == null) ? 0 : obj.swigCPtr;
00021   }
00022 
00023   protected void finalize() {
00024     delete();
00025   }
00026 
00027   public synchronized void delete() {
00028     if(swigCPtr != 0 && swigCMemOwn) {
00029       swigCMemOwn = false;
00030       arcJNI.delete_ClientHTTP(swigCPtr);
00031     }
00032     swigCPtr = 0;
00033     super.delete();
00034   }
00035 
00036   public ClientHTTP() {
00037     this(arcJNI.new_ClientHTTP__SWIG_0(), true);
00038   }
00039 
00040   public ClientHTTP(BaseConfig cfg, URL url, int timeout, String proxy_host, int proxy_port) {
00041     this(arcJNI.new_ClientHTTP__SWIG_1(BaseConfig.getCPtr(cfg), cfg, URL.getCPtr(url), url, timeout, proxy_host, proxy_port), true);
00042   }
00043 
00044   public ClientHTTP(BaseConfig cfg, URL url, int timeout, String proxy_host) {
00045     this(arcJNI.new_ClientHTTP__SWIG_2(BaseConfig.getCPtr(cfg), cfg, URL.getCPtr(url), url, timeout, proxy_host), true);
00046   }
00047 
00048   public ClientHTTP(BaseConfig cfg, URL url, int timeout) {
00049     this(arcJNI.new_ClientHTTP__SWIG_3(BaseConfig.getCPtr(cfg), cfg, URL.getCPtr(url), url, timeout), true);
00050   }
00051 
00052   public ClientHTTP(BaseConfig cfg, URL url) {
00053     this(arcJNI.new_ClientHTTP__SWIG_4(BaseConfig.getCPtr(cfg), cfg, URL.getCPtr(url), url), true);
00054   }
00055 
00056   public MCC_Status process(String method, PayloadRawInterface request, HTTPClientInfo info, SWIGTYPE_p_p_Arc__PayloadRawInterface response) {
00057     return new MCC_Status(arcJNI.ClientHTTP_process__SWIG_0(swigCPtr, this, method, PayloadRawInterface.getCPtr(request), request, HTTPClientInfo.getCPtr(info), info, SWIGTYPE_p_p_Arc__PayloadRawInterface.getCPtr(response)), true);
00058   }
00059 
00060   public MCC_Status process(String method, SWIGTYPE_p_std__multimapT_std__string_std__string_t attributes, PayloadRawInterface request, HTTPClientInfo info, SWIGTYPE_p_p_Arc__PayloadRawInterface response) {
00061     return new MCC_Status(arcJNI.ClientHTTP_process__SWIG_1(swigCPtr, this, method, SWIGTYPE_p_std__multimapT_std__string_std__string_t.getCPtr(attributes), PayloadRawInterface.getCPtr(request), request, HTTPClientInfo.getCPtr(info), info, SWIGTYPE_p_p_Arc__PayloadRawInterface.getCPtr(response)), true);
00062   }
00063 
00064   public MCC_Status process(String method, String path, PayloadRawInterface request, HTTPClientInfo info, SWIGTYPE_p_p_Arc__PayloadRawInterface response) {
00065     return new MCC_Status(arcJNI.ClientHTTP_process__SWIG_2(swigCPtr, this, method, path, PayloadRawInterface.getCPtr(request), request, HTTPClientInfo.getCPtr(info), info, SWIGTYPE_p_p_Arc__PayloadRawInterface.getCPtr(response)), true);
00066   }
00067 
00068   public MCC_Status process(String method, String path, SWIGTYPE_p_std__multimapT_std__string_std__string_t attributes, PayloadRawInterface request, HTTPClientInfo info, SWIGTYPE_p_p_Arc__PayloadRawInterface response) {
00069     return new MCC_Status(arcJNI.ClientHTTP_process__SWIG_3(swigCPtr, this, method, path, SWIGTYPE_p_std__multimapT_std__string_std__string_t.getCPtr(attributes), PayloadRawInterface.getCPtr(request), request, HTTPClientInfo.getCPtr(info), info, SWIGTYPE_p_p_Arc__PayloadRawInterface.getCPtr(response)), true);
00070   }
00071 
00072   public MCC_Status process(String method, String path, SWIGTYPE_p_uint64_t range_start, SWIGTYPE_p_uint64_t range_end, PayloadRawInterface request, HTTPClientInfo info, SWIGTYPE_p_p_Arc__PayloadRawInterface response) {
00073     return new MCC_Status(arcJNI.ClientHTTP_process__SWIG_4(swigCPtr, this, method, path, SWIGTYPE_p_uint64_t.getCPtr(range_start), SWIGTYPE_p_uint64_t.getCPtr(range_end), PayloadRawInterface.getCPtr(request), request, HTTPClientInfo.getCPtr(info), info, SWIGTYPE_p_p_Arc__PayloadRawInterface.getCPtr(response)), true);
00074   }
00075 
00076   public MCC_Status process(String method, String path, SWIGTYPE_p_std__multimapT_std__string_std__string_t attributes, SWIGTYPE_p_uint64_t range_start, SWIGTYPE_p_uint64_t range_end, PayloadRawInterface request, HTTPClientInfo info, SWIGTYPE_p_p_Arc__PayloadRawInterface response) {
00077     return new MCC_Status(arcJNI.ClientHTTP_process__SWIG_5(swigCPtr, this, method, path, SWIGTYPE_p_std__multimapT_std__string_std__string_t.getCPtr(attributes), SWIGTYPE_p_uint64_t.getCPtr(range_start), SWIGTYPE_p_uint64_t.getCPtr(range_end), PayloadRawInterface.getCPtr(request), request, HTTPClientInfo.getCPtr(info), info, SWIGTYPE_p_p_Arc__PayloadRawInterface.getCPtr(response)), true);
00078   }
00079 
00080   public MCC GetEntry() {
00081     long cPtr = arcJNI.ClientHTTP_GetEntry(swigCPtr, this);
00082     return (cPtr == 0) ? null : new MCC(cPtr, false);
00083   }
00084 
00085   public void AddSecHandler(XMLNode handlercfg, String libanme, String libpath) {
00086     arcJNI.ClientHTTP_AddSecHandler__SWIG_0(swigCPtr, this, XMLNode.getCPtr(handlercfg), handlercfg, libanme, libpath);
00087   }
00088 
00089   public void AddSecHandler(XMLNode handlercfg, String libanme) {
00090     arcJNI.ClientHTTP_AddSecHandler__SWIG_1(swigCPtr, this, XMLNode.getCPtr(handlercfg), handlercfg, libanme);
00091   }
00092 
00093   public void AddSecHandler(XMLNode handlercfg) {
00094     arcJNI.ClientHTTP_AddSecHandler__SWIG_2(swigCPtr, this, XMLNode.getCPtr(handlercfg), handlercfg);
00095   }
00096 
00097   public boolean Load() {
00098     return arcJNI.ClientHTTP_Load(swigCPtr, this);
00099   }
00100 
00101   public void RelativeURI(boolean val) {
00102     arcJNI.ClientHTTP_RelativeURI(swigCPtr, this, val);
00103   }
00104 
00105 }