- From: Damien Leroy via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 21 Sep 2006 16:01:27 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/org/w3c/unicorn In directory hutz:/tmp/cvs-serv25605/org/w3c/unicorn Modified Files: UnicornCall.java Log Message: Add use of http method information from the observer contrat to call the observer with method POST or GET. Index: UnicornCall.java =================================================================== RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/UnicornCall.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- UnicornCall.java 8 Sep 2006 15:35:53 -0000 1.3 +++ UnicornCall.java 21 Sep 2006 16:01:25 -0000 1.4 @@ -28,7 +28,6 @@ import org.w3c.unicorn.input.InputFactory; import org.w3c.unicorn.request.Request; import org.w3c.unicorn.request.RequestList; -import org.w3c.unicorn.request.RequestListImpl; import org.w3c.unicorn.tasklist.Observation; import org.w3c.unicorn.tasklist.Task; import org.w3c.unicorn.tasklist.parameters.Mapping; @@ -158,8 +157,6 @@ aInputFactory, this.mapOfStringParameter); - aInputFactory.dispose(); - if (UnicornCall.logger.isDebugEnabled()) { UnicornCall.logger.debug("RequestList : "+this.aRequestList+"."); } @@ -170,6 +167,8 @@ this.bPassedMedium = this.doRequests(TPriority.MEDIUM); if (!this.bPassedMedium) return; this.bPassedLow = this.doRequests(TPriority.LOW); + + aInputFactory.dispose(); } /** @@ -250,7 +249,7 @@ final MimeType aMimeType = aInputFactory.getMimeType(); final EnumInputMethod aEnumInputMethod = aInputFactory.getDefaultInputModule().getEnumInputMethod(); - final RequestList aRequestList = new RequestListImpl(this.sLang); + final RequestList aRequestList = new RequestList(this.sLang); // Iterate over all observation of this task to build a basic // request list with only the url of observator and input parameter for (final Observation aObservation : this.aTask.getMapOfObservation().values()) { @@ -303,7 +302,8 @@ final Request aRequest = Request.createRequest( aInputFactory.getInputModule(aEIM), aInputMethod.getCallMethod().getURL().toString(), - aInputMethod.getCallParameter().getName()); + aInputMethod.getCallParameter().getName(), + aInputMethod.getCallMethod().isPost()); // add this request to request list aRequestList.addRequest( aRequest, @@ -342,7 +342,8 @@ final Request aRequest = Request.createRequest( aInputFactory.getInputModule(aEnumInputMethod), aInputMethod.getCallMethod().getURL().toString(), - aInputMethod.getCallParameter().getName()); + aInputMethod.getCallParameter().getName(), + aInputMethod.getCallMethod().isPost()); // add this request to request list aRequestList.addRequest( aRequest, @@ -525,6 +526,7 @@ } public void setLang (final String sLang) { + UnicornCall.logger.debug("setLang("+sLang+")"); this.sLang = sLang; }
Received on Thursday, 21 September 2006 16:01:36 UTC