Class: Quark::Quark::SpiApi::HTTPServletProxy

Inherits:
Object
  • Object
show all
Extended by:
DatawireQuarkCore::Static
Defined in:
lib/quark/spi_api.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(real_runtime, http_servlet_impl) ⇒ HTTPServletProxy

Returns a new instance of HTTPServletProxy.



108
109
110
111
112
113
114
# File 'lib/quark/spi_api.rb', line 108

def initialize(real_runtime, http_servlet_impl)
    
    super(real_runtime, http_servlet_impl)
    (self).http_servlet_impl = http_servlet_impl

    nil
end

Instance Attribute Details

#http_servlet_implObject

Returns the value of attribute http_servlet_impl.



101
102
103
# File 'lib/quark/spi_api.rb', line 101

def http_servlet_impl
  @http_servlet_impl
end

Instance Method Details

#__init_fields__Object



171
172
173
174
175
176
177
# File 'lib/quark/spi_api.rb', line 171

def __init_fields__()
    
    super
    self.http_servlet_impl = nil

    nil
end

#_getClassObject



126
127
128
129
130
131
# File 'lib/quark/spi_api.rb', line 126

def _getClass()
    
    return "quark.spi_api.HTTPServletProxy"

    nil
end

#_getField(name) ⇒ Object



133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# File 'lib/quark/spi_api.rb', line 133

def _getField(name)
    
    if ((name) == ("servlet_impl"))
        return (self).servlet_impl
    end
    if ((name) == ("real_runtime"))
        return (self).real_runtime
    end
    if ((name) == ("http_servlet_impl"))
        return (self).http_servlet_impl
    end
    return nil

    nil
end

#_setField(name, value) ⇒ Object



149
150
151
152
153
154
155
156
157
158
159
160
161
162
# File 'lib/quark/spi_api.rb', line 149

def _setField(name, value)
    
    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.Runtime }
    end
    if ((name) == ("http_servlet_impl"))
        (self).http_servlet_impl = ::DatawireQuarkCore.cast(value) { ::Quark.quark.HTTPServlet }
    end

    nil
end

#onHTTPRequest(request, response) ⇒ Object



119
120
121
122
123
124
# File 'lib/quark/spi_api.rb', line 119

def onHTTPRequest(request, response)
    
    @http_servlet_impl.onHTTPRequest(request, response)

    nil
end

#serveHTTP(url) ⇒ Object



164
165
166
167
168
169
# File 'lib/quark/spi_api.rb', line 164

def serveHTTP(url)
    
    ::Quark.quark.concurrent.Context.runtime().serveHTTP(url, self)

    nil
end