|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.e_c_group.bwptk.Request
public class Request
Creates a request to be sent to a Broadworks Server
Constructor Summary | |
---|---|
Request(BroadWorksServer bws,
java.lang.String commandType)
Get a new request for a BroadWorksDocument with a command element within. |
Method Summary | |
---|---|
Request |
appendChildToCommand(org.w3c.dom.Element e)
Add an actual XML element to this command. |
Request |
appendChildToCommand(java.lang.String tagName)
Append an empty tag to a command; this creates an element with no content. |
Request |
appendChildToCommand(java.lang.String tagName,
java.lang.String value)
Adds a text-only element to the command. |
Request |
appendGroupServiceAuthorization(java.lang.String serviceName)
Given a Request, append the groupServiceAuthorization element necessary to grant unlimited service of one group service. |
Request |
appendTrunkGroupKey(java.lang.String serviceProviderId,
java.lang.String groupId,
java.lang.String trunkGroupName)
|
Request |
appendUserServiceAuthorization(java.lang.String serviceName)
|
org.w3c.dom.Element |
getElement(java.lang.String tagName)
Get a new, empty element having the name specified. |
org.w3c.dom.Element |
getNilElement(java.lang.String tagName)
|
Response |
getResponse()
|
Response |
getResponse(boolean readFromCache)
|
org.w3c.dom.Element |
getTextElement(java.lang.String tagName,
java.lang.String value)
Get a new, text element having the name and text value specified, BUT do not attach it to the request. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Request(BroadWorksServer bws, java.lang.String commandType) throws BwptkException
bws
- The broadworks server that this will be sent to.commandType
- The name of the command; e.g.., AuthenticationRequest
BwptkException
Method Detail |
---|
public Response getResponse(boolean readFromCache) throws BwptkException
BwptkException
public Response getResponse() throws BwptkException
BwptkException
public org.w3c.dom.Element getElement(java.lang.String tagName)
is a simple empty element with tagName "foo".
public org.w3c.dom.Element getNilElement(java.lang.String tagName)
public org.w3c.dom.Element getTextElement(java.lang.String tagName, java.lang.String value)
is a simple empty element with tagName "foo" and value "bar".bar
public Request appendChildToCommand(java.lang.String tagName, java.lang.String value)
public Request appendChildToCommand(java.lang.String tagName)
public Request appendChildToCommand(org.w3c.dom.Element e)
public Request appendGroupServiceAuthorization(java.lang.String serviceName) throws BwptkException
Request r = new Request("GroupServiceModifyAuthorizationListRequest");
r.appendChildToCommand("serviceProviderId", this.serviceProvider.getServiceProviderId());
r.appendChildToCommand("groupId", this.groupId);
r.appendGroupServiceAuthorization("Outgoing Calling Plan");
Response resp = r.getResponse();
BwptkException
public Request appendUserServiceAuthorization(java.lang.String serviceName) throws BwptkException
BwptkException
public Request appendTrunkGroupKey(java.lang.String serviceProviderId, java.lang.String groupId, java.lang.String trunkGroupName) throws BwptkException
BwptkException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |