Module: Taxii::Messages

Defined in:
lib/taxii/messages.rb,
lib/taxii/messages/parameters.rb,
lib/taxii/messages/poll_request.rb,
lib/taxii/messages/discovery_request.rb,
lib/taxii/messages/feed_information_request.rb

Defined Under Namespace

Modules: Parameters Classes: DiscoveryRequest, FeedInformationRequest, PollRequest

Constant Summary collapse

TAXII_11_HEADERS =
{
  'X-Taxii-Accept'        => 'urn:taxii.mitre.org:message:xml:1.1',
  'X-Taxii-Content-Type'  => 'urn:taxii.mitre.org:message:xml:1.1'
}
TAXII_10_HEADERS =
{
  'X-Taxii-Accept'        => 'urn:taxii.mitre.org:message:xml:1.0',
  'X-Taxii-Content-Type'  => 'urn:taxii.mitre.org:message:xml:1.0'
}
NAMESPACE_ATTRIBUTES =
{
  '@xmlns:taxii'    => 'http://taxii.mitre.org/messages/taxii_xml_binding-1',
  '@xmlns:taxii_11' => 'http://taxii.mitre.org/messages/taxii_xml_binding-1.1',
  '@xmlns:tdq'      => 'http://taxii.mitre.org/query/taxii_default_query-1'
}
TS_FORMAT =
'%Y-%m-%dT%H:%M:%S%:z'

Class Method Summary collapse

Class Method Details

.generate_idObject



21
22
23
# File 'lib/taxii/messages.rb', line 21

def self.generate_id
  format('%012d%08d',Time.new.to_i,$$)
end