|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jw.cloud42.core.endpoint.Cloud42Endpoint
@WebServiceProvider @BindingType(value="http://www.w3.org/2004/08/wsdl/http") @ServiceMode(value=MESSAGE) public class Cloud42Endpoint
This is an endpoint with a HTTP binding to receive POST notification messages
sent from an AMI instance to Cloud42.
Per default, it listens to http://localhost:8084/messages, but the address can be changed using the
Web Service interface of Cloud42.
It uses JAX-WS for a RESTful web service implementation.
Incoming messages are parsed into
de.jw.cloud42.core.eventing.Message objects using JAXB.
Important: Note that the HTTP content type explicitly must be set to text/xml so that a message
can be parsed correctly.
| Field Summary | |
|---|---|
protected javax.xml.ws.WebServiceContext |
wsContext
|
| Method Summary | |
|---|---|
java.lang.String |
getAddress()
Reads the address of the Cloud42 endpoint from the configuration entry in the database. |
static Cloud42Endpoint |
getInstance()
Singleton method. |
javax.xml.transform.Source |
invoke(javax.xml.transform.Source request)
Invoke method of web service. |
void |
setAddress(java.lang.String newAddress)
Set address of Cloud42 endpoint. |
void |
startEndpoint()
Create Cloud42 endpoint with HTTP Binding. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.xml.ws.WebServiceContext wsContext
| Method Detail |
|---|
public static Cloud42Endpoint getInstance()
public javax.xml.transform.Source invoke(javax.xml.transform.Source request)
invoke in interface javax.xml.ws.Provider<javax.xml.transform.Source>public void startEndpoint()
args - public java.lang.String getAddress()
public void setAddress(java.lang.String newAddress)
newAddress - the address to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||