YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.upnp.UpnpFailure Class Reference

Value holder for upnp failure information. More...

Collaboration diagram for de.yaacc.upnp.UpnpFailure:
Collaboration graph

Public Member Functions

 UpnpFailure (ActionInvocation<?> invocation, UpnpResponse response, String defaultMsg)
 constructor.
 
 UpnpFailure (ActionInvocation<?> invocation, UpnpResponse response, String defaultMsg, boolean transportFailure)
 constructor.
 
boolean isTransportFailure ()
 
ActionInvocation<?> getInvocation ()
 
UpnpResponse getOperation ()
 
String getDefaultMsg ()
 
String toString ()
 

Detailed Description

Value holder for upnp failure information.

Author
Tobias Schöne (openbit)

Constructor & Destructor Documentation

◆ UpnpFailure() [1/2]

de.yaacc.upnp.UpnpFailure.UpnpFailure ( ActionInvocation<?> invocation,
UpnpResponse response,
String defaultMsg )

constructor.

The failure counts as a transport failure when the invocation failed with an UpnpTransportException.

Parameters
invocationthe ActionInvocation
responsethe Upnp response
defaultMsga default message
Here is the call graph for this function:

◆ UpnpFailure() [2/2]

de.yaacc.upnp.UpnpFailure.UpnpFailure ( ActionInvocation<?> invocation,
UpnpResponse response,
String defaultMsg,
boolean transportFailure )

constructor.

Parameters
invocationthe ActionInvocation
responsethe Upnp response
defaultMsga default message
transportFailuretrue if the server could not be reached or did not answer

Member Function Documentation

◆ getDefaultMsg()

String de.yaacc.upnp.UpnpFailure.getDefaultMsg ( )
Returns
the defaultMsg

◆ getInvocation()

ActionInvocation<?> de.yaacc.upnp.UpnpFailure.getInvocation ( )
Returns
the invocation

◆ getOperation()

UpnpResponse de.yaacc.upnp.UpnpFailure.getOperation ( )
Returns
the operation

◆ isTransportFailure()

boolean de.yaacc.upnp.UpnpFailure.isTransportFailure ( )
Returns
true if the request did not reach the server or no answer came back, so repeating it can help; false for an answer of the server (a UPnP error) or a local problem

Referenced by de.yaacc.browser.BrowseRetryPolicy.isRetriable().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: