public class ServiceResourceRequestFilter extends java.lang.Object implements RequestFilter, org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
ServiceResourceRequestFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
doFilter(org.apache.http.nio.protocol.HttpAsyncExchange trigger,
org.apache.http.protocol.HttpContext context,
Message message)
Filter an ESB HTTP request before Proxy Service processing begins
|
java.lang.String |
handleWADLresponse(java.io.InputStream inputStream,
java.lang.String serviceUrl)
Handling WADL responses,validate WADL response and change
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Validate if the resourcePrefix is set on initialization
|
void |
setResourcePrefix(java.lang.String resourcePrefix) |
void |
setWadlSuffixes(java.util.List wadlSuffixes) |
void |
setWsdlSuffixes(java.util.List wsdlSuffixes) |
void |
setXsdSuffixes(java.util.List xsdSuffixes) |
public void setResourcePrefix(java.lang.String resourcePrefix)
public boolean doFilter(org.apache.http.nio.protocol.HttpAsyncExchange trigger, org.apache.http.protocol.HttpContext context, Message message) throws java.io.IOException
RequestFilter
doFilter
in interface RequestFilter
trigger
- the response trigger to use, to send a synchronous response back to the clientcontext
- the HTTP contextmessage
- the message created within the ESBjava.io.IOException
- on failurepublic java.lang.String handleWADLresponse(java.io.InputStream inputStream, java.lang.String serviceUrl)
inputStream
- InputStream of message payloadserviceUrl
- received service URL over the HTTP transport eg: '/service/rest-proxy'public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
applicationContext
- org.springframework.beans.BeansException
public void setWadlSuffixes(java.util.List wadlSuffixes)
public void setWsdlSuffixes(java.util.List wsdlSuffixes)
public void setXsdSuffixes(java.util.List xsdSuffixes)