W3C home > Mailing lists > Public > www-jigsaw@w3.org > May to June 1997

Re: Configuring ProcessFilter. (fwd)

From: Julianne Freire de Sousa Pepeu <jfsp@di.ufpe.br>
Date: Tue, 3 Jun 1997 11:32:18 -0300 (EST)
To: Anselm Baird-Smith <abaird@w3.org>
Cc: www-jigsaw@w3.org
Message-Id: <Pine.SUN.3.95.970603112739.23927G-100000@ulysses>

On Tue, 3 Jun 1997, Anselm Baird_Smith wrote:

> Julianne Freire de Sousa Pepeu writes:
>  > 1. I point my browser to http://machine:8001/Admin/Editor/proxy
>  > 2. I follow the link to Add filter 
>  > 3. I write the class (w3c.jigsaw.filters.ProcessFilter)
>  > 4. Press Ok
>  > 5. I follow the link filter-0
>  > 6. and... "The process filter of this resource is not configured properly
>  > (it has no command)."
>  > 
>  > when I try to set the "command" attribute, the ProcessFilter is already
>  > working!
> 
> Oops, I see, this may be a bug in the ProcessFiltyer (check the
> initialize mtehod looking for the command attribute, remove anything
> there that checksd the command)

but the check of the "command" attribute is done in the outgoingFilter
method, and not in the initialize method! see the code...

public Reply outgoingFilter (Request request, Reply reply)
        throws HTTPException
    {
        Process       process   = null ;
        ProcessFeeder feeder    = null ;
        String        command[] = getCommand() ;

        // Some sanity checks:
        if (reply.getStatus() != HTTP.OK)
            return null;
        InputStream in = reply.openStream() ;
        if ( in == null )
            return null;
        if ( command == null ) {
            Reply error = request.makeReply(HTTP.INTERNAL_SERVER_ERROR) ;
            error.setContent("The process filter of this resource is not "
                           + " configured properly (it has no command).");
            throw new HTTPException(error);
        }

...

Julianne.


> 
> Anselm.
> 
Received on Tuesday, 3 June 1997 10:32:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:26 GMT