|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiscovery.ResourceOffering
public class ResourceOffering
The ResourceOffering is a class used for storing the information in each of the user's service offerings. This class processes the resource offering Node and stores the values in variables which should be used when accessing the services.
Field Summary | |
---|---|
private org.w3c.dom.Node |
offering
|
private java.lang.String |
offeringid
|
private java.lang.String |
resourceid
|
private java.lang.String |
securityMechId
|
Constructor Summary | |
---|---|
ResourceOffering(org.w3c.dom.Node offering)
The constructor gets a Node with the content of the offering which it parses to find the resourceID, securityMechId and the service endpoint. |
Method Summary | |
---|---|
private org.w3c.dom.Node |
findNode(java.lang.String withName,
org.w3c.dom.Node parent)
Searches the input Node to find a Node with the name specified as a parameter and returns this Node. |
java.lang.String |
getMessageAuthMethod()
|
void |
getOffering(javax.xml.soap.SOAPElement appendto)
This method appends the offering to the input SOAPElement and throws an Exception if something goes wrong. |
java.lang.String |
getOfferingId()
|
java.lang.String |
getResourceId()
|
private void |
turnToSoap(org.w3c.dom.Node notSoap,
javax.xml.soap.SOAPElement parent)
This method turn the input Node notSoap into a SOAP node by adding the information from the Node into the input SOAPElement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String offeringid
private java.lang.String resourceid
private org.w3c.dom.Node offering
private java.lang.String securityMechId
Constructor Detail |
---|
public ResourceOffering(org.w3c.dom.Node offering)
offering
- Node The offering which is an XML NodeMethod Detail |
---|
private org.w3c.dom.Node findNode(java.lang.String withName, org.w3c.dom.Node parent)
public void getOffering(javax.xml.soap.SOAPElement appendto) throws javax.xml.soap.SOAPException
appendto
- SOAPElement The response which the offering should be added to.
javax.xml.soap.SOAPException
- Thrown to show that somethings went wrong and the offering could
not be addedprivate void turnToSoap(org.w3c.dom.Node notSoap, javax.xml.soap.SOAPElement parent) throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
public java.lang.String getOfferingId()
public java.lang.String getResourceId()
public java.lang.String getMessageAuthMethod()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |