public class CustomHL7MLLPCodec
extends org.apache.camel.component.hl7.HL7MLLPCodec
HapiContext
, e.g. to use some other
ModelClassFactory
. Also allows to set error handling in case of
malformed input.
Constructor and Description |
---|
CustomHL7MLLPCodec() |
Modifier and Type | Method and Description |
---|---|
Charset |
getCharset() |
org.apache.mina.filter.codec.ProtocolDecoder |
getDecoder(org.apache.mina.core.session.IoSession session) |
org.apache.mina.filter.codec.ProtocolEncoder |
getEncoder(org.apache.mina.core.session.IoSession session) |
char |
getEndByte1() |
char |
getEndByte2() |
ca.uhn.hl7v2.HapiContext |
getHapiContext() |
char |
getStartByte() |
boolean |
isConvertLFtoCR() |
boolean |
isProduceString() |
boolean |
isValidate() |
void |
setCharset(Charset charset) |
void |
setCharset(String charsetName) |
void |
setConvertLFtoCR(boolean convertLFtoCR) |
void |
setEndByte1(char endByte1) |
void |
setEndByte2(char endByte2) |
void |
setHapiContext(ca.uhn.hl7v2.HapiContext context) |
void |
setMalformedInputErrorAction(CodingErrorAction action) |
void |
setMalformedInputErrorAction(String action) |
void |
setProduceString(boolean apply) |
void |
setStartByte(char startByte) |
void |
setUnmappableCharacterErrorAction(CodingErrorAction action) |
void |
setUnmappableCharacterErrorAction(String action) |
void |
setValidate(boolean validate) |
public org.apache.mina.filter.codec.ProtocolDecoder getDecoder(org.apache.mina.core.session.IoSession session) throws Exception
getDecoder
in interface org.apache.mina.filter.codec.ProtocolCodecFactory
getDecoder
in class org.apache.camel.component.hl7.HL7MLLPCodec
Exception
public org.apache.mina.filter.codec.ProtocolEncoder getEncoder(org.apache.mina.core.session.IoSession session) throws Exception
getEncoder
in interface org.apache.mina.filter.codec.ProtocolCodecFactory
getEncoder
in class org.apache.camel.component.hl7.HL7MLLPCodec
Exception
public void setHapiContext(ca.uhn.hl7v2.HapiContext context)
public ca.uhn.hl7v2.HapiContext getHapiContext()
public void setCharset(Charset charset)
setCharset
in class org.apache.camel.component.hl7.HL7MLLPCodec
public void setCharset(String charsetName)
setCharset
in class org.apache.camel.component.hl7.HL7MLLPCodec
public Charset getCharset()
getCharset
in class org.apache.camel.component.hl7.HL7MLLPCodec
public boolean isConvertLFtoCR()
isConvertLFtoCR
in class org.apache.camel.component.hl7.HL7MLLPCodec
public void setConvertLFtoCR(boolean convertLFtoCR)
setConvertLFtoCR
in class org.apache.camel.component.hl7.HL7MLLPCodec
public char getStartByte()
getStartByte
in class org.apache.camel.component.hl7.HL7MLLPCodec
public void setStartByte(char startByte)
setStartByte
in class org.apache.camel.component.hl7.HL7MLLPCodec
public char getEndByte1()
getEndByte1
in class org.apache.camel.component.hl7.HL7MLLPCodec
public void setEndByte1(char endByte1)
setEndByte1
in class org.apache.camel.component.hl7.HL7MLLPCodec
public char getEndByte2()
getEndByte2
in class org.apache.camel.component.hl7.HL7MLLPCodec
public void setEndByte2(char endByte2)
setEndByte2
in class org.apache.camel.component.hl7.HL7MLLPCodec
public boolean isValidate()
isValidate
in class org.apache.camel.component.hl7.HL7MLLPCodec
public void setValidate(boolean validate)
setValidate
in class org.apache.camel.component.hl7.HL7MLLPCodec
public boolean isProduceString()
isProduceString
in class org.apache.camel.component.hl7.HL7MLLPCodec
public void setProduceString(boolean apply)
setProduceString
in class org.apache.camel.component.hl7.HL7MLLPCodec
public void setUnmappableCharacterErrorAction(CodingErrorAction action)
public void setMalformedInputErrorAction(CodingErrorAction action)
public void setUnmappableCharacterErrorAction(String action)
public void setMalformedInputErrorAction(String action)
Copyright © 2018 Open eHealth Foundation. All rights reserved.