public String debugString() { String dbgs = "(alertnotification: "; dbgs += super.debugString(); dbgs += ") "; return dbgs; } }
/** * This method is used to create generate a response corresponding to * this request. It creates the response using <code>createResponse</code> * and then sets the sequence number of the response to the sequence * number of this request. This way is ensured automatic matching * of the response to the request. * The created response is set this as the original request. * @see #createResponse() * @see Response#setOriginalRequest(Request) */ public Response getResponse() { Response response = createResponse(); response.setSequenceNumber(getSequenceNumber()); response.setOriginalRequest(this); return response; }
debug.write("SimulatorPDUProcessor.clientRequest() " + request.debugString()); Response response; int commandStatus; int commandId = request.getCommandId(); try { display("client request: " + request.debugString()); if (!bound) { // the first PDU must be bound request if (commandId == Data.BIND_TRANSMITTER if (commandStatus == 0) { // authenticated BindResponse bindResponse = (BindResponse) request.getResponse(); bindResponse.setSystemId(SYSTEM_ID); } else { // system id not authenticated response = request.getResponse(); if (request.canResponse()) { response = request.getResponse(); response.setCommandStatus(Data.ESME_RINVBNDSTS); if (request.canResponse()) { response = request.getResponse(); switch (commandId) { // for selected PDUs do extra steps case Data.SUBMIT_SM :
debug.enter(DSESS, this, "send(Request)"); Response response = null; debug.write(DSESS, "Sending request " + request.debugString()); try { transmitter.send(request); throw e; if ((!asynchronous) && (request.canResponse())) { PDU pdu = null; Response expResponse = null; expResponse = request.getResponse(); try { debug.write(DSESS, "Going to receive response. Expecting " + expResponse.debugString());
System.out.println("Received PDU " + pdu.debugString()); if (pdu.isRequest()) { Response response = ((Request) pdu).getResponse();
/** * Returns the command id of the corresponing response. */ public int getResponseCommandId() { Response response = createResponse(); return response.getCommandId(); }
public String debugString() { String dbgs = "(unbind: "; dbgs += super.debugString(); dbgs += ") "; return dbgs; } }
public String debugString() { String dbgs = "(enquirelink: "; dbgs += super.debugString(); dbgs += ") "; return dbgs; } }
/** * Sends a request to a client. For example, it can be used to send * delivery info to the client. * @param request the request to be sent to the client */ public void serverRequest(Request request) throws IOException, PDUException { debug.write("SimulatorPDUProcessor.serverRequest() " + request.debugString()); display("server request: " + request.debugString()); session.send(request); }
public String debugString() { String dbgs = "(outbind: "; dbgs += super.debugString(); dbgs += getSystemId(); dbgs += " "; dbgs += getPassword(); dbgs += ")"; return dbgs; }
public String debugString() { String dbgs = "(query: "; dbgs += super.debugString(); dbgs += getMessageId(); dbgs += " "; dbgs += getSourceAddr().debugString(); dbgs += " "; dbgs += debugStringOptional(); dbgs += ") "; return dbgs; } }
public String debugString() { String dbgs = "(submitmulti: "; dbgs += super.debugString(); dbgs += getSourceAddr().debugString(); dbgs += destAddresses.debugString(); dbgs += " "; dbgs += shortMessage.debugString(); dbgs += " "; dbgs += debugStringOptional(); dbgs += ") "; return dbgs; }
public String debugString() { String dbgs = "(bindreq: "; dbgs += super.debugString(); dbgs += getSystemId(); dbgs += " "; dbgs += getPassword(); dbgs += " "; dbgs += getSystemType(); dbgs += " "; dbgs += Integer.toString(getInterfaceVersion()); dbgs += " "; dbgs += getAddressRange().debugString(); dbgs += ") "; return dbgs; } }
public String debugString() { String dbgs = "(data: "; dbgs += super.debugString(); dbgs += getSourceAddr().debugString(); dbgs += " "; dbgs += getDestAddr().debugString(); dbgs += " "; dbgs += debugStringOptional(); dbgs += ") "; return dbgs; } }
public String debugString() { String dbgs = "(replace: "; dbgs += super.debugString(); dbgs += getMessageId(); dbgs += " "; dbgs += getSourceAddr().debugString(); dbgs += " "; dbgs += shortMessage.debugString(); dbgs += " "; dbgs += debugStringOptional(); dbgs += ") "; return dbgs; } }
public String debugString() { String dbgs = "(deliver: "; dbgs += super.debugString(); dbgs += getSourceAddr().debugString(); dbgs += " "; dbgs += getDestAddr().debugString(); dbgs += " "; dbgs += shortMessage.debugString(); dbgs += " "; dbgs += debugStringOptional(); dbgs += ") "; return dbgs; } }
public String debugString() { String dbgs = "(submit: "; dbgs += super.debugString(); dbgs += getSourceAddr().debugString(); dbgs += " "; dbgs += getDestAddr().debugString(); dbgs += " "; dbgs += shortMessage.debugString(); dbgs += " "; dbgs += debugStringOptional(); dbgs += ") "; return dbgs; } }
public String debugString() { String dbgs = "(cancel: "; dbgs += super.debugString(); dbgs += getServiceType(); dbgs += " "; dbgs += getMessageId(); dbgs += " "; dbgs += getSourceAddr().debugString(); dbgs += " "; dbgs += getDestAddr().debugString(); dbgs += ") "; return dbgs; } }