class HTTPResponse

Public Class Methods

new() click to toggle source
# File lib/response/HTTPResponse.rb, line 4
def initialize
  @code=0
  @content=nil
  @contentType=nil
  @location=nil
end

Public Instance Methods

getCode() click to toggle source
# File lib/response/HTTPResponse.rb, line 30
def getCode
  @code
end
getContent() click to toggle source
# File lib/response/HTTPResponse.rb, line 38
def getContent
  @content
end
getContentType() click to toggle source
# File lib/response/HTTPResponse.rb, line 46
def getContentType
  @contentType
end
getHTTPResponseCode() click to toggle source
# File lib/response/mms/HTTPResponse.rb, line 10
def getHTTPResponseCode
  @httpResponseCode
end
getLocation() click to toggle source
# File lib/response/HTTPResponse.rb, line 54
def getLocation
  @location
end
initializeJSON(jsondict) click to toggle source
# File lib/response/HTTPResponse.rb, line 11
def initializeJSON(jsondict)
  @code=0
  if (jsondict!=nil) && (jsondict.has_key?'code') && (jsondict['code']!=nil)
    @code=jsondict['code'].to_i
  end
  @content=nil
  if (jsondict!=nil) && (jsondict.has_key?'content') && (jsondict['content']!=nil)
    @content=jsondict['content']
  end
  @contentType=nil
  if (jsondict!=nil) && (jsondict.has_key?'contentType') && (jsondict['contentType']!=nil)
    @contentType=jsondict['contentType']
  end
  @location=nil
  if (jsondict!=nil) && (jsondict.has_key?'location') && (jsondict['location']!=nil)
    @location=jsondict['location']
  end
end
setCode(code) click to toggle source
# File lib/response/HTTPResponse.rb, line 34
def setCode(code)
  @code=code
end
setContent(content) click to toggle source
# File lib/response/HTTPResponse.rb, line 42
def setContent(content)
  @content=content
end
setContentType(contentType) click to toggle source
# File lib/response/HTTPResponse.rb, line 50
def setContentType(contentType)
  @contentType=contentType
end
setHTTPResponseCode(httpResponseCode) click to toggle source
# File lib/response/mms/HTTPResponse.rb, line 14
def setHTTPResponseCode(httpResponseCode)
  @httpResponseCode=httpResponseCode
end
setLocation(location) click to toggle source
# File lib/response/HTTPResponse.rb, line 58
def setLocation(location)
  @location=location
end