Examples of CMPSendHTTP


Examples of org.ejbca.core.protocol.cmp.CMPSendHTTP

  /* (non-Javadoc)
   * @see org.ejbca.ui.tcp.CmpTcpProxyCommandHandler#getServerResult(byte[], boolean, org.quickserver.net.server.ClientHandler)
   */
  @Override
  protected ServerResult getServerResult(byte[] message, boolean doClose, ClientHandler handler) throws IOException {
    final CMPSendHTTP send;
    try {
      send = CMPSendHTTP.doIt(message, config.serverAddress, config.serverPort, null, doClose);
    } catch( Throwable t ) {
      log.error(intres.getLocalizedMessage("cmp.errorprocess"), t);
      return getServerResult( null, false );
View Full Code Here

Examples of org.ejbca.core.protocol.cmp.CMPSendHTTP

    /* (non-Javadoc)
     * @see org.ejbca.ui.web.protocol.CmpProxyServlet.Connection#send(byte)
     */
    @Override
    public void send(byte message[], HttpServletResponse servletResp, String contentType) throws Exception {
      final CMPSendHTTP result = CMPSendHTTP.doIt(message, CmpProxyServlet.this.config.serverAddress, CmpProxyServlet.this.config.serverPort, null, false);
      if ( result.responseCode!=HttpURLConnection.HTTP_OK ) {
        servletResp.sendError(result.responseCode);
        return;
      }
      sendReturn(servletResp, result.response, result.contentType);
View Full Code Here

Examples of org.ejbca.core.protocol.cmp.CMPSendHTTP

                }
                return null;
            }
        }
        private byte[] sendCmpHttp(final byte[] message) throws Exception {
            final CMPSendHTTP send = CMPSendHTTP.doIt(message, StressTest.this.hostName, StressTest.this.port, StressTest.this.urlPath, false);
            if ( send.responseCode!=HttpURLConnection.HTTP_OK ) {
              StressTest.this.performanceTest.getLog().error(intres.getLocalizedMessage("cmp.responsecodenotok", Integer.valueOf(send.responseCode)));
              return null;
            }
            if ( send.contentType==null ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.