public abstract class SimpleBinding extends Object implements Binding
| Constructor and Description |
|---|
SimpleBinding() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckOperationHttpDeleteSupported, checkOperationHttpGetSupported, checkOperationHttpOptionsSupported, checkOperationHttpPostSupported, checkOperationHttpPutSupported, doDeleteOperation, doGetOperation, doOptionsOperation, doPostOperation, doPutOperationpublic HttpUtils getHttpUtils()
@Inject public void setHttpUtils(HttpUtils httpUtils)
@Inject public void setEventBus(EventBus eventBus)
public EventBus getEventBus()
@Inject public void setServiceOperatorRepository(ServiceOperatorRepository repo)
public ServiceOperatorRepository getServiceOperatorRepository()
@Inject public void setEncoderRepository(EncoderRepository encoderRepository)
public EncoderRepository getEncoderRepository()
@Inject public void setDecoderRepository(DecoderRepository decoderRepository)
public DecoderRepository getDecoderRepository()
public Object handleEncodingException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, EncodingException ex) throws HTTPException
handleEncodingException in interface EncodingExceptionHandlerHTTPExceptionprotected abstract boolean isUseHttpResponseCodes()
protected OwsServiceRequestContext getRequestContext(javax.servlet.http.HttpServletRequest req)
protected boolean isServiceSupported(String service)
protected <F,T> Decoder<F,T> getDecoder(DecoderKey key)
protected <F,T> Encoder<F,T> getEncoder(EncoderKey key)
protected boolean hasDecoder(DecoderKey key)
protected boolean hasDecoder(OwsOperationKey key, MediaType mediaType)
protected boolean hasEncoder(EncoderKey key)
protected boolean hasEncoder(OwsOperationKey key, MediaType mediaType)
protected boolean hasEncoder(OwsServiceResponse response, MediaType mediaType)
protected MediaType chooseResponseContentType(OwsServiceResponse response, List<MediaType> acceptHeader, MediaType defaultContentType) throws HTTPException
HTTPExceptionprotected MediaType chooseResponseContentTypeForExceptionReport(List<MediaType> acceptHeader, MediaType defaultContentType) throws HTTPException
HTTPExceptionprotected ServiceOperator getServiceOperator(OwsServiceKey sokt)
protected ServiceOperator getServiceOperator(OwsServiceRequest request) throws OwsExceptionReport
OwsExceptionReportprotected void checkServiceOperatorKeyTypes(OwsServiceRequest request) throws OwsExceptionReport
OwsExceptionReportprotected void writeResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
OwsServiceResponse serviceResponse)
throws HTTPException,
IOException
HTTPExceptionIOExceptionprotected Object encodeResponse(OwsServiceResponse response, MediaType contentType) throws OwsExceptionReport
OwsExceptionReportprotected void writeOwsExceptionReport(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
OwsExceptionReport oer)
throws HTTPException
HTTPExceptionprotected abstract MediaType getDefaultContentType()
protected Object encodeOwsExceptionReport(OwsExceptionReport oer, MediaType contentType) throws OwsExceptionReport, HTTPException
OwsExceptionReportHTTPExceptionCopyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.