@@ -59,7 +59,6 @@ TdjWebComponent = class(TdjGenericWebComponent)
5959 { $ENDIF DARAJA_LOGGING}
6060
6161 procedure DoCachedGet (Request: TdjRequest; Response: TdjResponse); virtual ;
62-
6362 protected
6463 (* *
6564 * Called by the server to handle a DELETE request.
@@ -138,22 +137,10 @@ TdjWebComponent = class(TdjGenericWebComponent)
138137
139138 public
140139 constructor Create;
141-
142140 destructor Destroy; override;
143141
144- (* *
145- * Dispatches client requests to the protected service method.
146- *
147- * @note a custom Web Component should not override this method.
148- *
149- * @param Context HTTP server context
150- * @param Request HTTP request
151- * @param Response HTTP response
152- * @throws EWebComponentException if an exception occurs that interferes with the component's normal operation
153- *)
154142 procedure Service (Context: TdjServerContext; Request: TdjRequest; Response:
155143 TdjResponse); override;
156-
157144 end ;
158145
159146 (* *
@@ -181,17 +168,16 @@ constructor TdjWebComponent.Create;
181168begin
182169 inherited Create;
183170
184- // logging -----------------------------------------------------------------
185- { $IFDEF DARAJA_LOGGING}
171+ { $IFDEF DARAJA_LOGGING}
186172 Logger := TdjLoggerFactory.GetLogger(' dj.' + TdjWebComponent.ClassName);
187- { $ENDIF DARAJA_LOGGING}
173+ { $ENDIF DARAJA_LOGGING}
188174
189- { $IFDEF LOG_CREATE} Trace(' Created' );{ $ENDIF}
175+ { $IFDEF LOG_CREATE} Trace(' Created' );{ $ENDIF}
190176end ;
191177
192178destructor TdjWebComponent.Destroy;
193179begin
194- { $IFDEF LOG_DESTROY} Trace(' Destroy' );{ $ENDIF}
180+ { $IFDEF LOG_DESTROY} Trace(' Destroy' );{ $ENDIF}
195181
196182 inherited ;
197183end ;
@@ -306,9 +292,9 @@ procedure TdjWebComponent.Service(Context: TdjServerContext;
306292 end ;
307293 else
308294 begin
309- { $IFDEF DARAJA_LOGGING}
295+ { $IFDEF DARAJA_LOGGING}
310296 Logger.Error(' Unknown HTTP method' );
311- { $ENDIF DARAJA_LOGGING}
297+ { $ENDIF DARAJA_LOGGING}
312298 end ;
313299 end ;
314300end ;
0 commit comments