Class: Quark::Quark::SpiApiTracing::HTTPResponseProxy

Inherits:
Object
  • Object
show all
Extended by:
DatawireQuarkCore::Static
Defined in:
lib/quark/spi_api_tracing.rb

Constant Summary

Constants included from DatawireQuarkCore::Static

DatawireQuarkCore::Static::Unassigned

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DatawireQuarkCore::Static

_lazy_statics, static, unlazy_statics

Constructor Details

#initialize(log, response_impl) ⇒ HTTPResponseProxy

Returns a new instance of HTTPResponseProxy.



433
434
435
436
437
438
439
# File 'lib/quark/spi_api_tracing.rb', line 433

def initialize(log, response_impl)
    
    super(log, "HTTPResponse")
    (self).response_impl = response_impl

    nil
end

Instance Attribute Details

#response_implObject

Returns the value of attribute response_impl.



426
427
428
# File 'lib/quark/spi_api_tracing.rb', line 426

def response_impl
  @response_impl
end

Instance Method Details

#__init_fields__Object



537
538
539
540
541
542
543
# File 'lib/quark/spi_api_tracing.rb', line 537

def __init_fields__()
    
    super
    self.response_impl = nil

    nil
end

#_getClassObject



493
494
495
496
497
498
# File 'lib/quark/spi_api_tracing.rb', line 493

def _getClass()
    
    return "quark.spi_api_tracing.HTTPResponseProxy"

    nil
end

#_getField(name) ⇒ Object



500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
# File 'lib/quark/spi_api_tracing.rb', line 500

def _getField(name)
    
    if ((name) == ("namer"))
        return ::Quark.quark.spi_api_tracing.Identifiable.namer
    end
    if ((name) == ("id"))
        return (self).id
    end
    if ((name) == ("log"))
        return (self).log
    end
    if ((name) == ("response_impl"))
        return (self).response_impl
    end
    return nil

    nil
end

#_setField(name, value) ⇒ Object



519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
# File 'lib/quark/spi_api_tracing.rb', line 519

def _setField(name, value)
    
    if ((name) == ("namer"))
        ::Quark.quark.spi_api_tracing.Identifiable.namer = ::DatawireQuarkCore.cast(value) { ::Quark.quark.spi_api_tracing.Identificator }
    end
    if ((name) == ("id"))
        (self).id = ::DatawireQuarkCore.cast(value) { ::String }
    end
    if ((name) == ("log"))
        (self).log = value
    end
    if ((name) == ("response_impl"))
        (self).response_impl = ::DatawireQuarkCore.cast(value) { ::Quark.quark.HTTPResponse }
    end

    nil
end

#getBodyObject



465
466
467
468
469
470
# File 'lib/quark/spi_api_tracing.rb', line 465

def getBody()
    
    return @response_impl.getBody()

    nil
end

#getCodeObject



444
445
446
447
448
449
# File 'lib/quark/spi_api_tracing.rb', line 444

def getCode()
    
    return @response_impl.getCode()

    nil
end

#getHeader(key) ⇒ Object



479
480
481
482
483
484
# File 'lib/quark/spi_api_tracing.rb', line 479

def getHeader(key)
    
    return @response_impl.getHeader(key)

    nil
end

#getHeadersObject



486
487
488
489
490
491
# File 'lib/quark/spi_api_tracing.rb', line 486

def getHeaders()
    
    return @response_impl.getHeaders()

    nil
end

#setBody(data) ⇒ Object



458
459
460
461
462
463
# File 'lib/quark/spi_api_tracing.rb', line 458

def setBody(data)
    
    @response_impl.setBody(data)

    nil
end

#setCode(code) ⇒ Object



451
452
453
454
455
456
# File 'lib/quark/spi_api_tracing.rb', line 451

def setCode(code)
    
    @response_impl.setCode(code)

    nil
end

#setHeader(key, value) ⇒ Object



472
473
474
475
476
477
# File 'lib/quark/spi_api_tracing.rb', line 472

def setHeader(key, value)
    
    @response_impl.setHeader(key, value)

    nil
end