Class JettyAsyncEndpoint<M>
- java.lang.Object
-
- org.apache.axis2.transport.testkit.http.JettyEndpoint
-
- org.apache.axis2.transport.testkit.http.JettyAsyncEndpoint<M>
-
- All Implemented Interfaces:
AsyncEndpoint<M>
- Direct Known Subclasses:
JettyByteArrayAsyncEndpoint,JettyRESTAsyncEndpoint
public abstract class JettyAsyncEndpoint<M> extends JettyEndpoint implements AsyncEndpoint<M>
-
-
Constructor Summary
Constructors Constructor Description JettyAsyncEndpoint()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclear()Discard any pending messages.protected abstract IncomingMessage<M>handle(javax.servlet.http.HttpServletRequest request)protected voidhandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)IncomingMessage<M>waitForMessage(int timeout)
-
-
-
Method Detail
-
handle
protected void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException- Specified by:
handlein classJettyEndpoint- Throws:
javax.servlet.ServletExceptionIOException
-
handle
protected abstract IncomingMessage<M> handle(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException, IOException
- Throws:
javax.servlet.ServletExceptionIOException
-
clear
public void clear() throws ExceptionDescription copied from interface:AsyncEndpointDiscard any pending messages.- Specified by:
clearin interfaceAsyncEndpoint<M>- Throws:
Exception
-
waitForMessage
public IncomingMessage<M> waitForMessage(int timeout) throws Throwable
- Specified by:
waitForMessagein interfaceAsyncEndpoint<M>- Throws:
Throwable
-
-