public interface ResponseFactory
DenicResponse
for the given response. The returned
objects are initialized (i.e. the fromXml
or
fromList
methods called). This is the responsibility of the
caller. Implementations of this interface must be thread-safe.Modifier and Type | Method and Description |
---|---|
Response |
createResponse(org.w3c.dom.Document doc,
Request request)
create an instance based on the given XML document.
|
Response |
createResponse(KVMultiList list,
Request request)
create an instance based on the given key-value pair list.
|
Response createResponse(org.w3c.dom.Document doc, Request request) throws org.w3c.dom.DOMException, ResponseParseException
doc
- the documentrequest
- the request, may be null
org.w3c.dom.DOMException
- on DOM exceptionsResponseParseException
- if the type could not be determinedResponse createResponse(KVMultiList list, Request request) throws ResponseParseException
list
- the listrequest
- the request, may be null
ResponseParseException
- if the type could not be determinedCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH