@Entity
public class RestRequestHandler
extends com.whitestein.lsps.common.VersionedAbstractEntity
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FIND_BY_MODEL_INSTANCE_AND_TASK
Query name.
|
static java.lang.String |
FIND_WAITING
Query name.
|
static java.lang.String |
FIND_WAITING_BY_METHOD
Query name.
|
Constructor and Description |
---|
RestRequestHandler() |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getCreated() |
java.lang.String |
getMethod() |
java.lang.Long |
getModelInstanceId() |
java.lang.String |
getPathTemplate()
Gets the path template which determines what paths can be handled by this
handler.
|
java.util.Date |
getRequestReceived() |
java.lang.String |
getResponseContentType() |
java.lang.Long |
getTaskId() |
boolean |
isWaiting()
Indicates if a request is waiting for a request.
|
void |
setCreated(java.util.Date created) |
void |
setMethod(java.lang.String method) |
void |
setModelInstanceId(java.lang.Long modelInstanceId) |
void |
setPathTemplate(java.lang.String pathTemplate)
Sets the path template for this handler.
|
void |
setRequestReceived(java.util.Date requestReceived) |
void |
setResponseContentType(java.lang.String responseContentType) |
void |
setTaskId(java.lang.Long taskId) |
void |
setWaiting(boolean waiting)
Sets the waiting flat to the request handler.
|
java.lang.String |
toString() |
public static final java.lang.String FIND_WAITING
public static final java.lang.String FIND_WAITING_BY_METHOD
public static final java.lang.String FIND_BY_MODEL_INSTANCE_AND_TASK
public java.lang.Long getModelInstanceId()
public void setModelInstanceId(java.lang.Long modelInstanceId)
public java.lang.Long getTaskId()
public void setTaskId(java.lang.Long taskId)
public java.lang.String getMethod()
public void setMethod(java.lang.String method)
public boolean isWaiting()
true
if this handler is in waiting state;
otherwise false
.public void setWaiting(boolean waiting)
waiting
- the value of the waiting flagpublic java.lang.String getPathTemplate()
public void setPathTemplate(java.lang.String pathTemplate)
pathTemplate
- the path template to setpublic java.util.Date getCreated()
public void setCreated(java.util.Date created)
public java.util.Date getRequestReceived()
public void setRequestReceived(java.util.Date requestReceived)
public java.lang.String getResponseContentType()
public void setResponseContentType(java.lang.String responseContentType)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.