View Javadoc

1   package ca.uhn.hl7v2.hoh.encoder;
2   
3   import ca.uhn.hl7v2.hoh.util.VersionLogger;
4   
5   public class Hl7OverHttpResponseEncoder extends AbstractHl7OverHttpEncoder {
6   
7   	@Override
8   	protected void setActionLineAppropriately() {
9   		ResponseCode resp = ResponseCode.detect(getMessage());
10  		setActionLine("HTTP/1.1 " + resp.getCode() + " " + resp.getMessage());
11  	}
12  
13  	@Override
14  	protected void addSpecificHeaders() {
15  		getHeaders().put("Server", "HAPI (HL7 over HTTP) Server " + VersionLogger.getVersion());
16  	}
17  
18  
19  }