Known Direct Subclasses
|
Known Indirect Subclasses
|
Summary
| Fields |
|
private
String |
callbackUrl |
The URL that the hub should call back, which is the public URL of the HTTP inbound endpoint placed in front of
the subscriber element. |
|
private
String |
hubUrl |
The URL of the PubSubHubbub to connect to. |
|
private
Long |
leaseSeconds |
(Optional) Number of seconds for which the subscriber would like to have the subscription active. |
|
private
String |
secret |
(Optional) A subscriber-provided secret string that will be used to compute an HMAC digest for authorized content
distribution. |
|
private
String |
topic |
The topic URL that the subscriber wishes to subscribe to. |
| Protected Methods |
|
String
|
handleContentDelivery(String contentType, Map<String, Object> responseHeaders, String onBehalfOf, String payload, SourceCallback sourceCallback)
|
|
void
|
handleOnBehalfOf(Map<String, Object> responseHeaders, String onBehalfOf)
|
|
[Expand]
Inherited Methods |
From class
org.mule.module.pubsubhubbub.AbstractPuSHModule
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
org.mule.api.context.MuleContextAware
|
abstract
void
|
setMuleContext(MuleContext arg0)
|
|
Fields
private
String
callbackUrl
The URL that the hub should call back, which is the public URL of the HTTP inbound endpoint placed in front of
the subscriber element.
private
String
hubUrl
The URL of the PubSubHubbub to connect to.
private
Long
leaseSeconds
(Optional) Number of seconds for which the subscriber would like to have the subscription active. Defaults to 7
days.
private
String
secret
(Optional) A subscriber-provided secret string that will be used to compute an HMAC digest for authorized content
distribution.
private
String
topic
The topic URL that the subscriber wishes to subscribe to.
Public Constructors
public
PuSHSubscriberModule
()
Public Methods
public
String
getCallbackUrl
()
public
String
getHubUrl
()
public
Long
getLeaseSeconds
()
public
String
getSecret
()
public
String
getTopic
()
public
String
getVerifyToken
()
public
String
handleSubscriberRequest
(String httpMethod, String contentType, Map<String, Object> responseHeaders, String onBehalfOf, String payload, SourceCallback sourceCallback)
Handle all subscriber requests.
Parameters
| httpMethod
| The HTTP method name |
| contentType
| The content-type of the request |
| responseHeaders
| The outbound/response headers |
| onBehalfOf
| (Optional) number of subscribers this subscriber is representing, should be either an integer
or a Mule expression |
| payload
| The message payload |
| sourceCallback
| The callback to call when content is propagated |
Throws
|
| Exception |
|
| MuleException |
| DecoderException
| |
| Exception
| |
public
void
setCallbackUrl
(String callbackUrl)
public
void
setHubUrl
(String hubUrl)
public
void
setLeaseSeconds
(Long leaseSeconds)
public
void
setSecret
(String secret)
public
void
setTopic
(String topic)
Protected Methods
protected
String
handleContentDelivery
(String contentType, Map<String, Object> responseHeaders, String onBehalfOf, String payload, SourceCallback sourceCallback)
Parameters
| contentType
| |
| responseHeaders
| |
| onBehalfOf
| |
| payload
| |
| sourceCallback
| |
protected
void
handleOnBehalfOf
(Map<String, Object> responseHeaders, String onBehalfOf)
Parameters
| responseHeaders
| |
| onBehalfOf
| |