org.mobicents.slee.resource.xcapclient.handler
Class AbstractAsyncHandler
java.lang.Object
org.mobicents.slee.resource.xcapclient.handler.AbstractAsyncHandler
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- AsyncDeleteHandler, AsyncDeleteIfMatchHandler, AsyncDeleteIfNoneMatchHandler, AsyncGetHandler, AsyncPutByteArrayContentHandler, AsyncPutIfMatchByteArrayContentHandler, AsyncPutIfMatchStringContentHandler, AsyncPutIfNoneMatchByteArrayContentHandler, AsyncPutIfNoneMatchStringContentHandler, AsyncPutStringContentHandler
public abstract class AbstractAsyncHandler
- extends java.lang.Object
- implements java.lang.Runnable
Abstract class for a handler
- Author:
- emmartins
|
Constructor Summary |
protected |
AbstractAsyncHandler(XCAPClientResourceAdaptor ra,
org.mobicents.slee.resource.xcapclient.XCAPResourceAdaptorActivityHandle handle,
java.net.URI uri,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
|
|
Method Summary |
protected abstract org.mobicents.xcap.client.XcapResponse |
doRequest()
To be implemented by concrete handler, sends the request to the XCAP and
processes response. |
void |
run()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uri
protected java.net.URI uri
ra
protected XCAPClientResourceAdaptor ra
handle
protected org.mobicents.slee.resource.xcapclient.XCAPResourceAdaptorActivityHandle handle
additionalRequestHeaders
protected org.apache.http.Header[] additionalRequestHeaders
credentials
protected org.apache.http.auth.Credentials credentials
AbstractAsyncHandler
protected AbstractAsyncHandler(XCAPClientResourceAdaptor ra,
org.mobicents.slee.resource.xcapclient.XCAPResourceAdaptorActivityHandle handle,
java.net.URI uri,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
doRequest
protected abstract org.mobicents.xcap.client.XcapResponse doRequest()
throws java.lang.Exception
- To be implemented by concrete handler, sends the request to the XCAP and
processes response.
- Returns:
-
- Throws:
java.io.IOException
java.lang.Exception
run
public void run()
- Specified by:
run in interface java.lang.Runnable
Copyright © 2010. All Rights Reserved.