|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResponseFactory
interface to a class that is capabable of creating a suitable subclass
of 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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 exceptions
ResponseParseException
- 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 determined
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |