Class: XDS::XdsRequestEntity
- Inherits:
-
Object
- Object
- XDS::XdsRequestEntity
- Defined in:
- lib/xds/xds_request_entity.rb
Constant Summary collapse
- MULTIPART_FORM_CONTENT_TYPE =
"multipart/related"
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#start ⇒ Object
Returns the value of attribute start.
-
#start_info ⇒ Object
Returns the value of attribute start_info.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
7 8 9 |
# File 'lib/xds/xds_request_entity.rb', line 7 def action @action end |
#start ⇒ Object
Returns the value of attribute start.
5 6 7 |
# File 'lib/xds/xds_request_entity.rb', line 5 def start @start end |
#start_info ⇒ Object
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 |
#type ⇒ Object
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
#getContentType ⇒ Object
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 |