Class: Quark::Quark::SpiApiTracing::WSServletProxy
Constant Summary
DatawireQuarkCore::Static::Unassigned
Instance Attribute Summary collapse
Instance Method Summary
collapse
_lazy_statics, static, unlazy_statics
Constructor Details
#initialize(log, real_runtime, ws_servlet_impl) ⇒ WSServletProxy
Returns a new instance of WSServletProxy.
663
664
665
666
667
668
669
|
# File 'lib/quark/spi_api_tracing.rb', line 663
def initialize(log, real_runtime, ws_servlet_impl)
super(log, "WSServlet", real_runtime, ws_servlet_impl)
(self).ws_servlet_impl = ws_servlet_impl
nil
end
|
Instance Attribute Details
#ws_servlet_impl ⇒ Object
Returns the value of attribute ws_servlet_impl.
656
657
658
|
# File 'lib/quark/spi_api_tracing.rb', line 656
def ws_servlet_impl
@ws_servlet_impl
end
|
Instance Method Details
#__init_fields__ ⇒ Object
754
755
756
757
758
759
760
|
# File 'lib/quark/spi_api_tracing.rb', line 754
def __init_fields__()
super
self.ws_servlet_impl = nil
nil
end
|
#_getClass ⇒ Object
691
692
693
694
695
696
|
# File 'lib/quark/spi_api_tracing.rb', line 691
def _getClass()
return "quark.spi_api_tracing.WSServletProxy"
nil
end
|
#_getField(name) ⇒ Object
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
|
# File 'lib/quark/spi_api_tracing.rb', line 698
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) == ("servlet_impl"))
return (self).servlet_impl
end
if ((name) == ("real_runtime"))
return (self).real_runtime
end
if ((name) == ("ws_servlet_impl"))
return (self).ws_servlet_impl
end
return nil
nil
end
|
#_setField(name, value) ⇒ Object
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
|
# File 'lib/quark/spi_api_tracing.rb', line 723
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) == ("servlet_impl"))
(self).servlet_impl = ::DatawireQuarkCore.cast(value) { ::Quark.quark.Servlet }
end
if ((name) == ("real_runtime"))
(self).real_runtime = ::DatawireQuarkCore.cast(value) { ::Quark.quark.spi_api_tracing.RuntimeProxy }
end
if ((name) == ("ws_servlet_impl"))
(self).ws_servlet_impl = ::DatawireQuarkCore.cast(value) { ::Quark.quark.WSServlet }
end
nil
end
|
#onWSConnect(request) ⇒ Object
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
|
# File 'lib/quark/spi_api_tracing.rb', line 674
def onWSConnect(request)
wrapped_request = ::Quark.quark.spi_api_tracing.HTTPRequestProxy.new((self).log, request)
(self).log.debug(((((((((self).id) + (".onWSConnect(")) + ((wrapped_request).id)) + (" ")) + (request.getMethod())) + (" ")) + (::Quark.quark.spi_api_tracing.quote(request.getUrl()))) + (")..."))
handler = @ws_servlet_impl.onWSConnect(wrapped_request)
if ((handler) == (nil))
(self).log.debug(((((((self).id) + (".onWSConnect(")) + ((wrapped_request).id)) + (")")) + (" -> ")) + ("null"))
return handler
else
wrapped_handler = ::Quark.quark.spi_api_tracing.WSHandlerProxy.new((self).log, handler)
(self).log.debug(((((((self).id) + (".onWSConnect(")) + ((wrapped_request).id)) + (")")) + (" -> ")) + ((wrapped_handler).id))
return wrapped_handler
end
nil
end
|
#serveWS(url) ⇒ Object
747
748
749
750
751
752
|
# File 'lib/quark/spi_api_tracing.rb', line 747
def serveWS(url)
::Quark.quark.concurrent.Context.runtime().serveWS(url, self)
nil
end
|