public String debugString() { String dbgs = "(replace_resp: "; dbgs += super.debugString(); dbgs += ") "; return dbgs; } }
public String debugString() { String dbgs = "(unbind_resp: "; dbgs += super.debugString(); dbgs += ") "; return dbgs; } }
public String debugString() { String dbgs = "(cancel_resp: "; dbgs += super.debugString(); dbgs += ") "; return dbgs; } }
public String debugString() { String dbgs = "(genericnack: "; dbgs += super.debugString(); dbgs += ")"; return dbgs; }
public String debugString() { String dbgs = "(enquirelink_resp: "; dbgs += super.debugString(); dbgs += ") "; return dbgs; } }
/** * Processes the response received from the client. * @param response the response from client */ public void clientResponse(Response response) { debug.write("SimulatorPDUProcessor.clientResponse() " + response.debugString()); display("client response: " + response.debugString()); }
/** * Send the response created by <code>clientRequest</code> to the client. * @param response the response to send to client */ public void serverResponse(Response response) throws IOException, PDUException { synchronized(this) { try { // Sleep for 300 ms sending reply to more accuratly simulate smsc this.wait(300); } catch( Exception e ) { e.printStackTrace(); } } debug.write("SimulatorPDUProcessor.serverResponse() " + response.debugString()); display("server response: " + response.debugString()); session.send(response); }
public String debugString() { String dbgs = "(deliver_resp: "; dbgs += super.debugString(); dbgs += getMessageId(); dbgs += " "; dbgs += debugStringOptional(); dbgs += ") "; return dbgs; } }
public String debugString() { String dbgs = "(data_resp: "; dbgs += super.debugString(); dbgs += getMessageId(); dbgs += " "; dbgs += debugStringOptional(); dbgs += ") "; return dbgs; } }
public String debugString() { String dbgs = "(submit_resp: "; dbgs += super.debugString(); dbgs += getMessageId(); dbgs += " "; dbgs += debugStringOptional(); dbgs += ") "; return dbgs; } }
public String debugString() { String dbgs = "(submitmulti_resp: "; dbgs += super.debugString(); dbgs += getMessageId(); dbgs += " "; dbgs += unsuccessSMEs.debugString(); dbgs += " "; dbgs += debugStringOptional(); dbgs += ") "; return dbgs; }
public String debugString() { String dbgs = "(bindresp: "; dbgs += super.debugString(); dbgs += getSystemId(); if (hasScInterfaceVersion()) { dbgs += " "; try { dbgs += getScInterfaceVersion(); } catch (Exception e) { // don't want to throw exception in debug code! } } dbgs += ") "; return dbgs; } }
Response response = ((Request) pdu).getResponse(); System.out.println("Going to send default response to request " + response.debugString()); session.respond(response);
public String debugString() { String dbgs = "(query_resp: "; dbgs += super.debugString(); dbgs += getMessageId(); dbgs += " "; dbgs += getFinalDate(); dbgs += " "; dbgs += getMessageState(); dbgs += " "; dbgs += getErrorCode(); dbgs += " "; dbgs += debugStringOptional(); dbgs += ") "; return dbgs; } }
/** * Sends a response PDU. Use for sending responses for PDUs send * from SMSC, e.g. DELIVERY_SM etc. * * @param response the response to be sent * * @exception IOException exception during communication * @exception ValueNotSetException optional param not set but requested * @see Transmitter */ final public void respond(Response response) throws ValueNotSetException, IOException, WrongSessionStateException { checkState(response); debug.enter(DSESS, this, "respond(Response)"); debug.write(DSESS, "Sending response " + response.debugString()); try { transmitter.send(response); } catch (ValueNotSetException e) { event.write(e, "Sending a response."); debug.exit(DSESS, this); throw e; } debug.exit(DSESS, this); }
debug.write(DSESS, "checking response if it's what we expected."); if (pdu.getCommandId() != expResponse.getCommandId()) { debug.write(DSESS, "Got different response than expected " + expResponse.debugString()); if (pdu.getCommandId() == Data.GENERIC_NACK) {
expResponse = request.getResponse(); try { debug.write(DSESS, "Going to receive response. Expecting " + expResponse.debugString()); try { pdu = receiver.receive(expResponse);