2828
2929import org .apache .coyote .AbstractProcessor ;
3030import org .apache .coyote .ActionCode ;
31- import org .apache .coyote .Adapter ;
3231import org .apache .coyote .AsyncContextCallback ;
33- import org .apache .coyote .AsyncStateMachine ;
3432import org .apache .coyote .InputBuffer ;
3533import org .apache .coyote .Request ;
3634import org .apache .coyote .RequestInfo ;
37- import org .apache .coyote .Response ;
3835import org .apache .juli .logging .Log ;
3936import org .apache .tomcat .util .ExceptionUtils ;
4037import org .apache .tomcat .util .buf .ByteChunk ;
@@ -117,12 +114,6 @@ public abstract class AbstractAjpProcessor extends AbstractProcessor {
117114 // ----------------------------------------------------- Instance Variables
118115
119116
120- /**
121- * Associated adapter.
122- */
123- protected Adapter adapter = null ;
124-
125-
126117 /**
127118 * AJP packet size.
128119 */
@@ -209,12 +200,6 @@ public abstract class AbstractAjpProcessor extends AbstractProcessor {
209200 protected boolean finished = false ;
210201
211202
212- /**
213- * Track changes in state for async requests.
214- */
215- protected AsyncStateMachine asyncStateMachine = new AsyncStateMachine (this );
216-
217-
218203 /**
219204 * Bytes written to client for the current request
220205 */
@@ -229,12 +214,8 @@ public AbstractAjpProcessor(int packetSize, AbstractEndpoint endpoint) {
229214
230215 this .packetSize = packetSize ;
231216
232- request = new Request ();
233217 request .setInputBuffer (new SocketInputBuffer ());
234218
235- response = new Response ();
236- request .setResponse (response );
237-
238219 requestHeaderMessage = new AjpMessage (packetSize );
239220 responseHeaderMessage = new AjpMessage (packetSize );
240221 bodyMessage = new AjpMessage (packetSize );
@@ -509,29 +490,6 @@ public void recycle() {
509490 byteCount = 0 ;
510491 }
511492
512- // ------------------------------------------------------ Connector Methods
513-
514-
515- /**
516- * Set the associated adapter.
517- *
518- * @param adapter the new adapter
519- */
520- public void setAdapter (Adapter adapter ) {
521- this .adapter = adapter ;
522- }
523-
524-
525- /**
526- * Get the associated adapter.
527- *
528- * @return the associated adapter
529- */
530- public Adapter getAdapter () {
531- return adapter ;
532- }
533-
534-
535493 // ------------------------------------------------------ Protected Methods
536494
537495
0 commit comments