1 4 5 9 10 package org.openlaszlo.remote.soap; 11 12 public class LZSOAPOperation 13 { 14 17 String mName; 18 19 22 String mMangledName; 23 24 28 String mSoapAction = null; 29 30 42 boolean mIsDocumentLiteralWrapped = false; 43 44 47 String mStyle = "document"; 48 49 53 LZSOAPMessage mInputMessage = null; 54 LZSOAPMessage mOutputMessage = null; 55 56 57 public LZSOAPOperation(String name) { 58 mName = name; 59 mMangledName = name; 60 } 61 62 public String getName() { 63 return mName; 64 } 65 66 public String getMangledName() { 67 return mMangledName; 68 } 69 70 public void setMangledName(String mangledName) { 71 mMangledName = mangledName; 72 } 73 74 public void setStyle(String style) { 75 mStyle = style; 76 } 77 78 public String getStyle() { 79 return mStyle; 80 } 81 82 public void setSoapAction(String soapAction) { 83 mSoapAction = soapAction; 84 } 85 86 public String getSoapAction() { 87 return mSoapAction; 88 } 89 90 public void setIsDocumentLiteralWrapped(boolean isDocumentLiteralWrapped) { 91 mIsDocumentLiteralWrapped = isDocumentLiteralWrapped; 92 } 93 94 public boolean isDocumentLiteralWrapped() { 95 return mIsDocumentLiteralWrapped; 96 } 97 98 public LZSOAPMessage getInputMessage() { 99 return mInputMessage; 100 } 101 102 public LZSOAPMessage getOutputMessage() { 103 return mOutputMessage; 104 } 105 106 public void setInputMessage(LZSOAPMessage inputMessage) { 107 mInputMessage = inputMessage; 108 } 109 110 public void setOutputMessage(LZSOAPMessage outputMessage) { 111 mOutputMessage = outputMessage; 112 } 113 114 public void toXML(StringBuffer sb) { 115 sb.append("<operation") 116 .append(" name=\"").append(mName).append("\"") 117 .append(" mangledName=\"").append(mMangledName).append("\"") 118 .append(" soapAction=\"").append(mSoapAction).append("\"") 119 .append(" style=\"").append(mStyle).append("\"") 120 .append(" is-document-literal-wrapped=\"").append(mIsDocumentLiteralWrapped).append("\"") 121 .append(">"); 122 sb.append("<input>"); 123 mInputMessage.toXML(sb); 124 sb.append("</input>"); 125 sb.append("<output>"); 126 mOutputMessage.toXML(sb); 127 sb.append("</output>"); 128 sb.append("</operation>"); 129 } 130 } 131 | Popular Tags |