Class: XDS::XdsRequestEntity

Inherits:
Object
  • Object
show all
Defined in:
lib/xds/xds_request_entity.rb

Constant Summary collapse

MULTIPART_FORM_CONTENT_TYPE =
"multipart/related"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action.



7
8
9
# File 'lib/xds/xds_request_entity.rb', line 7

def action
  @action
end

#startObject

Returns the value of attribute start.



5
6
7
# File 'lib/xds/xds_request_entity.rb', line 5

def start
  @start
end

#start_infoObject

Returns the value of attribute start_info.



6
7
8
# File 'lib/xds/xds_request_entity.rb', line 6

def start_info
  @start_info
end

#typeObject

Returns the value of attribute type.



8
9
10
# File 'lib/xds/xds_request_entity.rb', line 8

def type
  @type
end

Instance Method Details

#getContentTypeObject



10
11
12
# File 'lib/xds/xds_request_entity.rb', line 10

def getContentType()    
 buffer = %{#{MULTIPART_FORM_CONTENT_TYPE}; type="#{@type}"; start="<#{@start}>"; start-info="#{@start_info}"; action="#{action}"; boundary=#{org.apache.commons.httpclient.util.EncodingUtil.getAsciiString(getMultipartBoundary())}}
end