Package org.n52.iceland.binding
Class SimpleBinding
- java.lang.Object
-
- org.n52.iceland.binding.SimpleBinding
-
- All Implemented Interfaces:
Binding,EncodingExceptionHandler,Component<BindingKey>,Keyed<BindingKey>
- Direct Known Subclasses:
AbstractXmlBinding,EXIBinding,JSONBinding,KvpBinding
public abstract class SimpleBinding extends Object implements Binding
TODO JavaDoc- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description SimpleBinding()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.iceland.binding.Binding
checkOperationHttpDeleteSupported, checkOperationHttpGetSupported, checkOperationHttpOptionsSupported, checkOperationHttpPostSupported, checkOperationHttpPutSupported, doDeleteOperation, doGetOperation, doOptionsOperation, doPostOperation, doPutOperation
-
-
-
-
Method Detail
-
getHttpUtils
public HttpUtils getHttpUtils()
-
setHttpUtils
@Inject public void setHttpUtils(HttpUtils httpUtils)
-
setEventBus
@Inject public void setEventBus(EventBus eventBus)
-
getEventBus
public EventBus getEventBus()
-
setServiceOperatorRepository
@Inject public void setServiceOperatorRepository(ServiceOperatorRepository repo)
-
getServiceOperatorRepository
public ServiceOperatorRepository getServiceOperatorRepository()
-
setEncoderRepository
@Inject public void setEncoderRepository(EncoderRepository encoderRepository)
-
getEncoderRepository
public EncoderRepository getEncoderRepository()
-
setDecoderRepository
@Inject public void setDecoderRepository(DecoderRepository decoderRepository)
-
getDecoderRepository
public DecoderRepository getDecoderRepository()
-
handleEncodingException
public Object handleEncodingException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, EncodingException ex) throws HTTPException
- Specified by:
handleEncodingExceptionin interfaceEncodingExceptionHandler- Throws:
HTTPException
-
isUseHttpResponseCodes
protected abstract boolean isUseHttpResponseCodes()
-
getRequestContext
protected OwsServiceRequestContext getRequestContext(javax.servlet.http.HttpServletRequest req)
-
isServiceSupported
protected boolean isServiceSupported(String service)
-
getDecoder
protected <F,T> Decoder<F,T> getDecoder(DecoderKey key)
-
getEncoder
protected <F,T> Encoder<F,T> getEncoder(EncoderKey key)
-
hasDecoder
protected boolean hasDecoder(DecoderKey key)
-
hasDecoder
protected boolean hasDecoder(OwsOperationKey key, MediaType mediaType)
-
hasEncoder
protected boolean hasEncoder(EncoderKey key)
-
hasEncoder
protected boolean hasEncoder(OwsOperationKey key, MediaType mediaType)
-
hasEncoder
protected boolean hasEncoder(OwsServiceResponse response, MediaType mediaType)
-
chooseResponseContentType
protected MediaType chooseResponseContentType(OwsServiceResponse response, List<MediaType> acceptHeader, MediaType defaultContentType) throws HTTPException
- Throws:
HTTPException
-
chooseResponseContentTypeForExceptionReport
protected MediaType chooseResponseContentTypeForExceptionReport(List<MediaType> acceptHeader, MediaType defaultContentType) throws HTTPException
- Throws:
HTTPException
-
getServiceOperator
protected ServiceOperator getServiceOperator(OwsServiceKey sokt)
-
getServiceOperator
protected ServiceOperator getServiceOperator(OwsServiceRequest request) throws OwsExceptionReport
- Throws:
OwsExceptionReport
-
checkServiceOperatorKeyTypes
protected void checkServiceOperatorKeyTypes(OwsServiceRequest request) throws OwsExceptionReport
- Throws:
OwsExceptionReport
-
writeResponse
protected void writeResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, OwsServiceResponse serviceResponse) throws HTTPException, IOException- Throws:
HTTPExceptionIOException
-
encodeResponse
protected Object encodeResponse(OwsServiceResponse response, MediaType contentType) throws OwsExceptionReport
- Throws:
OwsExceptionReport
-
writeOwsExceptionReport
protected void writeOwsExceptionReport(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, OwsExceptionReport oer) throws HTTPException- Throws:
HTTPException
-
getDefaultContentType
protected abstract MediaType getDefaultContentType()
-
encodeOwsExceptionReport
protected Object encodeOwsExceptionReport(OwsExceptionReport oer, MediaType contentType) throws OwsExceptionReport, HTTPException
- Throws:
OwsExceptionReportHTTPException
-
-