FileDocCategorySizeDatePackage
MemoryProtocolHandler.javaAPI DocApache Tomcat 6.0.144223Fri Jul 20 04:20:32 BST 2007org.apache.coyote.memory

MemoryProtocolHandler

public class MemoryProtocolHandler extends Object implements org.apache.coyote.ProtocolHandler
Abstract the protocol implementation, including threading, etc. Processor is single threaded and specific to stream-based protocols, will not fit Jk protocols like JNI.
author
Remy Maucherat

Fields Summary
protected org.apache.coyote.Adapter
adapter
Associated adapter.
Constructors Summary
Methods Summary
public voiddestroy()

    
public org.apache.coyote.AdaptergetAdapter()

        return (adapter);
    
public java.lang.ObjectgetAttribute(java.lang.String name)

        return null;
    
public java.util.IteratorgetAttributeNames()

 return null ; 
public voidinit()
Init the protocol.

    
public voidpause()

    
public voidprocess(org.apache.coyote.Request request, org.apache.tomcat.util.buf.ByteChunk input, org.apache.coyote.Response response, org.apache.tomcat.util.buf.ByteChunk output)
Process specified request.


        InputBuffer inputBuffer = new ByteChunkInputBuffer(input);
        OutputBuffer outputBuffer = new ByteChunkOutputBuffer(output);
        request.setInputBuffer(inputBuffer);
        response.setOutputBuffer(outputBuffer);

        adapter.service(request, response);

    
public voidresume()

    
public voidsetAdapter(org.apache.coyote.Adapter adapter)
The adapter, used to call the connector.


                
        
        this.adapter = adapter;
    
public voidsetAttribute(java.lang.String name, java.lang.Object value)
Pass config info.

    
public voidstart()
Start the protocol.