/** * add the hostname string. If one already exists, remove it. * @param hostname string name of a host * @since Axis1.2 */ public void addHostname(String hostname) { //add the hostname removeHostname(); addFaultDetail(Constants.QNAME_FAULTDETAIL_HOSTNAME, hostname); }
/** * add the hostname string. If one already exists, remove it. * @param hostname string name of a host * @since Axis1.2 */ public void addHostname(String hostname) { //add the hostname removeHostname(); addFaultDetail(Constants.QNAME_FAULTDETAIL_HOSTNAME, hostname); }
/** * add the hostname string. If one already exists, remove it. * @param hostname string name of a host * @since Axis1.2 */ public void addHostname(String hostname) { //add the hostname removeHostname(); addFaultDetail(Constants.QNAME_FAULTDETAIL_HOSTNAME, hostname); }
/** * Wrap an AxisFault around an existing Exception. This is private * to force everyone to use makeFault() above, which sanity-checks us. * * @param target the target <code>Exception</code> */ protected AxisFault(Exception target) { super ("", target); // ? SOAP 1.2 or 1.1 ? setFaultCodeAsString( Constants.FAULT_SERVER_USER ); initFromException(target); // if the target is a JAX-RPC SOAPFaultException init // AxisFault with the values from the SOAPFaultException if ( target instanceof SOAPFaultException ) { //strip out the hostname as we want any new one removeHostname(); initFromSOAPFaultException((SOAPFaultException) target); //but if they left it out, add it addHostnameIfNeeded(); } }
/** * Wrap an AxisFault around an existing Exception. This is private * to force everyone to use makeFault() above, which sanity-checks us. * * @param target the target <code>Exception</code> */ protected AxisFault(Exception target) { super ("", target); // ? SOAP 1.2 or 1.1 ? setFaultCodeAsString( Constants.FAULT_SERVER_USER ); initFromException(target); // if the target is a JAX-RPC SOAPFaultException init // AxisFault with the values from the SOAPFaultException if ( target instanceof SOAPFaultException ) { //strip out the hostname as we want any new one removeHostname(); initFromSOAPFaultException((SOAPFaultException) target); //but if they left it out, add it addHostnameIfNeeded(); } }
/** * Wrap an AxisFault around an existing Exception. This is private * to force everyone to use makeFault() above, which sanity-checks us. * * @param target the target <code>Exception</code> */ protected AxisFault(Exception target) { super ("", target); // ? SOAP 1.2 or 1.1 ? setFaultCodeAsString( Constants.FAULT_SERVER_USER ); initFromException(target); // if the target is a JAX-RPC SOAPFaultException init // AxisFault with the values from the SOAPFaultException if ( target instanceof SOAPFaultException ) { //strip out the hostname as we want any new one removeHostname(); initFromSOAPFaultException((SOAPFaultException) target); //but if they left it out, add it addHostnameIfNeeded(); } }