Back to index

nordugrid-arc-nox  1.1.0~rc6
HTTPClientInfo.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 HTTPClientInfo {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected HTTPClientInfo(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(HTTPClientInfo obj) {
00021     return (obj == null) ? 0 : obj.swigCPtr;
00022   }
00023 
00024   public synchronized void delete() {
00025     if(swigCPtr != 0 && swigCMemOwn) {
00026       swigCMemOwn = false;
00027       throw new UnsupportedOperationException("C++ destructor does not have public access");
00028     }
00029     swigCPtr = 0;
00030   }
00031 
00032   public void setCode(int value) {
00033     arcJNI.HTTPClientInfo_code_set(swigCPtr, this, value);
00034   }
00035 
00036   public int getCode() {
00037     return arcJNI.HTTPClientInfo_code_get(swigCPtr, this);
00038   }
00039 
00040   public void setReason(String value) {
00041     arcJNI.HTTPClientInfo_reason_set(swigCPtr, this, value);
00042   }
00043 
00044   public String getReason() {
00045     return arcJNI.HTTPClientInfo_reason_get(swigCPtr, this);
00046   }
00047 
00048   public void setSize(SWIGTYPE_p_uint64_t value) {
00049     arcJNI.HTTPClientInfo_size_set(swigCPtr, this, SWIGTYPE_p_uint64_t.getCPtr(value));
00050   }
00051 
00052   public SWIGTYPE_p_uint64_t getSize() {
00053     return new SWIGTYPE_p_uint64_t(arcJNI.HTTPClientInfo_size_get(swigCPtr, this), true);
00054   }
00055 
00056   public void setLastModified(Time value) {
00057     arcJNI.HTTPClientInfo_lastModified_set(swigCPtr, this, Time.getCPtr(value), value);
00058   }
00059 
00060   public Time getLastModified() {
00061     long cPtr = arcJNI.HTTPClientInfo_lastModified_get(swigCPtr, this);
00062     return (cPtr == 0) ? null : new Time(cPtr, false);
00063   }
00064 
00065   public void setType(String value) {
00066     arcJNI.HTTPClientInfo_type_set(swigCPtr, this, value);
00067   }
00068 
00069   public String getType() {
00070     return arcJNI.HTTPClientInfo_type_get(swigCPtr, this);
00071   }
00072 
00073   public void setCookies(StringList value) {
00074     arcJNI.HTTPClientInfo_cookies_set(swigCPtr, this, StringList.getCPtr(value), value);
00075   }
00076 
00077   public StringList getCookies() {
00078     long cPtr = arcJNI.HTTPClientInfo_cookies_get(swigCPtr, this);
00079     return (cPtr == 0) ? null : new StringList(cPtr, false);
00080   }
00081 
00082   public void setLocation(String value) {
00083     arcJNI.HTTPClientInfo_location_set(swigCPtr, this, value);
00084   }
00085 
00086   public String getLocation() {
00087     return arcJNI.HTTPClientInfo_location_get(swigCPtr, this);
00088   }
00089 
00090 }