Package org.jumpmind.symmetric.web
Class AbstractUriHandler
java.lang.Object
org.jumpmind.symmetric.web.AbstractUriHandler
- All Implemented Interfaces:
IUriHandler
- Direct Known Subclasses:
AbstractCompressionUriHandler,AckUriHandler,BandwidthSamplerUriHandler,ConfigurationUriHandler,CopyNodeUriHandler,FileSyncPullUriHandler,FileSyncPushUriHandler,InfoUriHandler,PingUriHandler,PushStatusUriHandler,PushUriHandler,RegistrationUriHandler,SnapshotUriHandler
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractUriHandler(String uriPattern, IParameterService parameterService, IInterceptor... interceptors) -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamcreateInputStream(jakarta.servlet.http.HttpServletRequest req) protected IOutgoingTransportcreateOutgoingTransport(OutputStream outputStream, String encoding) protected IOutgoingTransportcreateOutgoingTransport(OutputStream outputStream, String encoding, ChannelMap map) booleanvoidsetEnabled(boolean enabled) voidsetInterceptors(List<IInterceptor> interceptors) voidsetParameterService(IParameterService parameterService) voidsetUriPattern(String uriPattern) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jumpmind.symmetric.web.IUriHandler
handle
-
Field Details
-
log
protected final org.slf4j.Logger log -
parameterService
-
-
Constructor Details
-
AbstractUriHandler
public AbstractUriHandler(String uriPattern, IParameterService parameterService, IInterceptor... interceptors)
-
-
Method Details
-
createInputStream
protected InputStream createInputStream(jakarta.servlet.http.HttpServletRequest req) throws IOException - Throws:
IOException
-
setUriPattern
-
getUriPattern
- Specified by:
getUriPatternin interfaceIUriHandler
-
setInterceptors
-
getInterceptors
- Specified by:
getInterceptorsin interfaceIUriHandler
-
createOutgoingTransport
protected IOutgoingTransport createOutgoingTransport(OutputStream outputStream, String encoding, ChannelMap map) throws IOException - Throws:
IOException
-
createOutgoingTransport
protected IOutgoingTransport createOutgoingTransport(OutputStream outputStream, String encoding) throws IOException - Throws:
IOException
-
setEnabled
public void setEnabled(boolean enabled) -
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceIUriHandler
-
setParameterService
-