public class OddjobRestHandler extends java.lang.Object implements ValueFactory<org.eclipse.jetty.server.Handler>, ArooaSessionAware
The actual service API is defined in OddjobApi
.
<oddjob> <job> <sequential> <jobs> <web:server id="server" xmlns:web="oddjob:web"> <handler> <web:oddjob-rest root="${jobs}"/> </handler> </web:server> <sequential id="jobs"> <jobs> <echo name="Echo 1">Hello</echo> <echo name="Echo 2">Hello</echo> </jobs> </sequential> </jobs> </sequential> </job> </oddjob>
ValueFactory.Conversions
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTEXT_PATH |
static java.lang.String |
SERVICE_PATH |
Constructor and Description |
---|
OddjobRestHandler() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.jetty.servlet.FilterHolder |
crossOriginFilter() |
java.lang.String |
getContextPath() |
MultipartConfigParameters |
getMultiPartConfig() |
java.lang.Object |
getRoot() |
java.lang.String |
getServicePath() |
java.io.File |
getUploadDirectory() |
boolean |
isAllowCrossOrigin() |
void |
setAllowCrossOrigin(boolean allowCrossOrigin) |
void |
setArooaSession(ArooaSession session)
Accept the current Arooa Session.
|
void |
setContextPath(java.lang.String contextPath) |
void |
setMultiPartConfig(MultipartConfigParameters multiPartConfig) |
void |
setRoot(java.lang.Object root) |
void |
setServicePath(java.lang.String servicePath) |
void |
setUploadDirectory(java.io.File uploadDirectory) |
java.lang.String |
toString() |
org.eclipse.jetty.server.Handler |
toValue()
Provide an instance of the type this is a factory for.
|
static org.eclipse.jetty.servlet.ServletHolder |
wsServletHolder(javax.servlet.MultipartConfigElement multipartConfigElement) |
public static final java.lang.String CONTEXT_PATH
public static final java.lang.String SERVICE_PATH
public void setArooaSession(ArooaSession session)
ArooaSessionAware
setArooaSession
in interface ArooaSessionAware
session
- The Arooa Session. Never null.public org.eclipse.jetty.server.Handler toValue()
ValueFactory
toValue
in interface ValueFactory<org.eclipse.jetty.server.Handler>
public static org.eclipse.jetty.servlet.ServletHolder wsServletHolder(javax.servlet.MultipartConfigElement multipartConfigElement)
public static org.eclipse.jetty.servlet.FilterHolder crossOriginFilter()
public void setRoot(java.lang.Object root)
public java.lang.Object getRoot()
public void setContextPath(java.lang.String contextPath)
public java.lang.String getContextPath()
public java.lang.String getServicePath()
public void setServicePath(java.lang.String servicePath)
public boolean isAllowCrossOrigin()
public void setAllowCrossOrigin(boolean allowCrossOrigin)
public MultipartConfigParameters getMultiPartConfig()
public void setMultiPartConfig(MultipartConfigParameters multiPartConfig)
public java.io.File getUploadDirectory()
public void setUploadDirectory(java.io.File uploadDirectory)
public java.lang.String toString()
toString
in class java.lang.Object