|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectloanfund.ServiceResponse
public class ServiceResponse
The class ServiceResponse is used to create the reponse message. It needs to create the header and the body. The body contains the service values. This also creates the tokens and a signature of the assertion.
Field Summary | |
---|---|
private javax.xml.soap.SOAPEnvelope |
env
|
static java.lang.String |
GRANTED
|
private java.lang.String |
inResponseTo
|
private java.lang.String[][] |
labelsGB
|
private java.lang.String[][] |
labelsNB
|
private java.lang.String |
language
|
private javax.xml.soap.SOAPMessage |
message
|
private static java.lang.String |
ns
|
private static java.lang.String |
sb
|
static int |
STATUS_INDEX
|
Constructor Summary | |
---|---|
ServiceResponse(java.lang.String inResponseTo,
java.lang.String language)
The constructor creates the message and initialises variables that are used in message creation. |
Method Summary | |
---|---|
void |
createBody(java.lang.String[] values)
When creating the body the method adds all the services in a ServiceList element which holds the content of the response. |
private void |
createHeader()
This method creates the header by adding all the required fields such as the messageID, correlation and timestamp. |
private java.lang.String |
getCauseText(java.lang.String statuscode)
Returns the cause text of the input code in the correct language |
javax.xml.soap.SOAPMessage |
getMessage()
|
private java.lang.String |
getStatusText(java.lang.String statuscode)
Returns the status text of the input code in the correct language |
java.lang.String |
toString()
Returns a string representation of this request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int STATUS_INDEX
public static final java.lang.String GRANTED
private static final java.lang.String ns
private static final java.lang.String sb
private javax.xml.soap.SOAPEnvelope env
private javax.xml.soap.SOAPMessage message
private java.lang.String inResponseTo
private java.lang.String language
private java.lang.String[][] labelsGB
private java.lang.String[][] labelsNB
Constructor Detail |
---|
public ServiceResponse(java.lang.String inResponseTo, java.lang.String language) throws ServiceRequestException
inResponseTo
- String The messageid of the request this is a response tolanguage
- String The preferred language
ServiceRequestException
- If an error occurs that indicate we should make a fault
message insteadMethod Detail |
---|
private void createHeader() throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
public void createBody(java.lang.String[] values) throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPException
private java.lang.String getStatusText(java.lang.String statuscode)
private java.lang.String getCauseText(java.lang.String statuscode)
public javax.xml.soap.SOAPMessage getMessage()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |