class HttpServletConnection extends AbstractReceiverConnection implements EndpointAwareWebServiceConnection, FaultAwareWebServiceConnection {

	@Override
	public void setFaultCode(QName faultCode) throws IOException {
		if (faultCode != null) {
			if (SOAPConstants.SOAP_SENDER_FAULT.equals(faultCode)) {
				getHttpServletResponse().setStatus(HttpTransportConstants.STATUS_BAD_REQUEST);
			} else {
				getHttpServletResponse().setStatus(HttpTransportConstants.STATUS_INTERNAL_SERVER_ERROR);
			}
		} else {
			getHttpServletResponse().setStatus(HttpTransportConstants.STATUS_OK);
		}
		statusCodeSet = true;
	}

	protected  HttpServletConnection(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse);

}