public void putAppBuffer(byte []b, int off, int len) { try { appOutput.write(b, off, len); } catch (Exception e) { RadiusLog.error(e.getMessage(), e); } }
public void putAppBuffer(byte []b, int off, int len) { try { appOutput.write(b, off, len); } catch (Exception e) { RadiusLog.error(e.getMessage(), e); } }
public void putAppBuffer(byte []b) { try { appOutput.write(b); } catch (Exception e) { RadiusLog.error(e.getMessage(), e); } }
public void putAppBuffer(byte []b, int off, int len) { try { appOutput.write(b, off, len); } catch (Exception e) { RadiusLog.error(e.getMessage(), e); } }
public void putAppBuffer(byte []b) { try { appOutput.write(b); } catch (Exception e) { RadiusLog.error(e.getMessage(), e); } }
public void setConfiguration(ListenerConfigurationItem cfg) { try { setConfiguration(cfg, false); } catch (Exception e) { e.printStackTrace(); RadiusLog.error("Invalid JRadius configuration.", e); } }
public void setConfiguration(ListenerConfigurationItem cfg) { try { setConfiguration(cfg, false); } catch (Exception e) { e.printStackTrace(); RadiusLog.error("Invalid JRadius configuration.", e); } }
protected boolean noSessionFound(JRadiusRequest request) throws RadiusException { RadiusPacket req = request.getRequestPacket(); RadiusLog.error("No session found for packet:\n" + req.toString()); return true; }
protected boolean noSessionFound(JRadiusRequest request) throws RadiusException { RadiusPacket req = request.getRequestPacket(); RadiusLog.error("No session found for packet:\n" + req.toString()); return true; }
public RadiusRequest getAccessRequest() throws InterruptedException { RadiusPacket p = this.accessRequest.getPacket(); if (p == null) { RadiusLog.error("we never got the access request"); abort(null); } return (RadiusRequest)p; }
public RadiusResponse getAccessResponse() throws InterruptedException { RadiusPacket p = this.accessResponse.getPacket(); if (p == null) { RadiusLog.error("we never got the access response"); abort(null); } return (RadiusResponse)p; }
public RadiusRequest getAccessRequest() throws InterruptedException { RadiusPacket p = this.accessRequest.getPacket(); if (p == null) { RadiusLog.error("we never got the access request"); abort(null); } return (RadiusRequest)p; }
public RadiusRequest getAccessRequest() throws InterruptedException { RadiusPacket p = this.accessRequest.getPacket(); if (p == null) { RadiusLog.error("we never got the access request"); abort(null); } return (RadiusRequest)p; }
public RadiusResponse getAccessResponse() throws InterruptedException { RadiusPacket p = this.accessResponse.getPacket(); if (p == null) { RadiusLog.error("we never got the access response"); abort(null); } return (RadiusResponse)p; }
public boolean onNoAccountingStatusType(JRadiusRequest request) throws RadiusException { JRadiusLogEntry logEntry = getLogEntry(request); String error = "Accounting packet without a Acct-Status-Type!"; RadiusLog.error(error); logEntry.addMessage(error); request.setReturnValue(JRadiusServer.RLM_MODULE_REJECT); return true; }
public boolean onNoAccountingStatusType(JRadiusRequest request) throws RadiusException { JRadiusLogEntry logEntry = getLogEntry(request); String error = "Accounting packet without a Acct-Status-Type!"; RadiusLog.error(error); logEntry.addMessage(error); request.setReturnValue(JRadiusServer.RLM_MODULE_REJECT); return true; }
public boolean onNoAccountingStatusType(JRadiusRequest request) throws RadiusException { JRadiusLogEntry logEntry = getLogEntry(request); String error = "Accounting packet without a Acct-Status-Type!"; RadiusLog.error(error); logEntry.addMessage(error); request.setReturnValue(JRadiusServer.RLM_MODULE_REJECT); return true; }
public void onRadiusError(SessionExpiredEvent event) { JRadiusSession session = event.getSession(); String error = "Session Expired in Error State"; RadiusLog.error(session.getSessionKey() + ": " + error); JRadiusLogEntry logEntry = session.getLogEntry(event, "0"); logEntry.setType("error"); logEntry.addMessage(error); session.commitLogEntries(JRadiusServer.RLM_MODULE_FAIL); }
public void onRadiusError(SessionExpiredEvent event) { JRadiusSession session = event.getSession(); String error = "Session Expired in Error State"; RadiusLog.error(session.getSessionKey() + ": " + error); JRadiusLogEntry logEntry = session.getLogEntry(event, "0"); logEntry.setType("error"); logEntry.addMessage(error); session.commitLogEntries(JRadiusServer.RLM_MODULE_FAIL); }
private void sendResponse(WebServiceRequest request, OutputStream out) throws IOException { WebServiceResponse response = request.getResponse(); if (response == null) { RadiusLog.error("No response found for WebServiceRequest: " + request.toString()); writeBadRequest(out, request.getHttpVersion()); return; } writeResponse(out, request.getHttpVersion(), response.getHeaders(), response.getContent(), response.getSendFile()); }