Package org.n52.iceland.binding.kvp
Class KvpBinding
- java.lang.Object
-
- org.n52.iceland.binding.SimpleBinding
-
- org.n52.iceland.binding.kvp.KvpBinding
-
- All Implemented Interfaces:
Binding,EncodingExceptionHandler,Component<BindingKey>,Keyed<BindingKey>
@Configurable public class KvpBinding extends SimpleBinding
OWS binding for Key-Value-Pair (HTTP-Get) requests- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description KvpBinding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckOperationHttpGetSupported(OwsOperationKey k)Check, if the operation is supported by the decoder by the HTTP-Get method.voiddoGetOperation(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)HTTP GET request handling method.protected MediaTypegetDefaultContentType()Set<BindingKey>getKeys()protected booleanisUseHttpResponseCodes()protected OwsServiceRequestparseRequest(javax.servlet.http.HttpServletRequest req)voidsetIncludeOriginalRequest(boolean includeOriginalRequest)voidsetUseHttpResponseCodes(boolean useHttpResponseCodes)-
Methods inherited from class org.n52.iceland.binding.SimpleBinding
checkServiceOperatorKeyTypes, chooseResponseContentType, chooseResponseContentTypeForExceptionReport, encodeOwsExceptionReport, encodeResponse, getDecoder, getDecoderRepository, getEncoder, getEncoderRepository, getEventBus, getHttpUtils, getRequestContext, getServiceOperator, getServiceOperator, getServiceOperatorRepository, handleEncodingException, hasDecoder, hasDecoder, hasEncoder, hasEncoder, hasEncoder, isServiceSupported, isVersionSupported, setDecoderRepository, setEncoderRepository, setEventBus, setHttpUtils, setServiceOperatorRepository, writeOwsExceptionReport, writeResponse
-
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, checkOperationHttpOptionsSupported, checkOperationHttpPostSupported, checkOperationHttpPutSupported, doDeleteOperation, doOptionsOperation, doPostOperation, doPutOperation
-
-
-
-
Method Detail
-
setUseHttpResponseCodes
@Setting("misc.httpResponseCodeUseInKvpAndPoxBinding") public void setUseHttpResponseCodes(boolean useHttpResponseCodes)
-
isUseHttpResponseCodes
protected boolean isUseHttpResponseCodes()
- Specified by:
isUseHttpResponseCodesin classSimpleBinding
-
setIncludeOriginalRequest
@Setting("misc.includeOriginalRequest") public void setIncludeOriginalRequest(boolean includeOriginalRequest)
-
getKeys
public Set<BindingKey> getKeys()
-
getDefaultContentType
protected MediaType getDefaultContentType()
- Specified by:
getDefaultContentTypein classSimpleBinding
-
doGetOperation
public void doGetOperation(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws HTTPException, IOExceptionDescription copied from interface:BindingHTTP GET request handling method.- Parameters:
req- HTTP GET requestres- HTTP GET response- Throws:
HTTPException- if the encoding of an exception failedIOException- if an IO error occurs
-
checkOperationHttpGetSupported
public boolean checkOperationHttpGetSupported(OwsOperationKey k)
Description copied from interface:BindingCheck, if the operation is supported by the decoder by the HTTP-Get method.- Parameters:
k- identifier of the decoder- Returns:
- true, if the decoder
decoderKeysupports HTTP-Get for operationoperationName
-
parseRequest
protected OwsServiceRequest parseRequest(javax.servlet.http.HttpServletRequest req) throws OwsExceptionReport
- Throws:
OwsExceptionReport
-
-