|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.catalog.publication.ProcessingContext
public class ProcessingContext
Holds context properties and summary information for a resource processing request.
Constructor Summary | |
---|---|
ProcessingContext()
Default constructor. |
|
ProcessingContext(RequestContext requestContext,
Publisher publisher,
HttpClientRequest httpClient,
PublicationRecord template,
boolean validateOnly)
Constrcuts a processing context. |
Method Summary | |
---|---|
HttpClientRequest |
getHttpClient()
Gets an HTTP client suitable for outbound requests. |
Exception |
getLastException()
Gets the last exception encountered (if applicable). |
MessageBroker |
getMessageBroker()
Gets the resource bundle message broker. |
int |
getNumberCreated()
Gets the number of documents created. |
int |
getNumberDeleted()
Gets the number of documents deleted. |
int |
getNumberFailed()
Gets the number of documents that failed. |
int |
getNumberReplaced()
Gets the number of documents replaced. |
int |
getNumberUnchanged()
Gets the number of documents unchanged. |
int |
getNumberValidated()
Gets the number of documents validated. |
List<ProcessedRecord> |
getProcessedRecords()
Gets the list of records processed during this request. |
Publisher |
getPublisher()
Gets publisher associated with the processing request. |
RequestContext |
getRequestContext()
Gets the underlying request context. |
PublicationRecord |
getTemplate()
Gets the template associated with new documents. |
boolean |
getValidateOnly()
Gets the status indicating if this is a validate only request. |
boolean |
getWasSingleSource()
Gets the status indicating if processing occurred against a single source document. |
void |
incrementNumberCreated()
Increments the number of documents created. |
void |
incrementNumberDeleted()
Increments the number of documents deleted. |
void |
incrementNumberFailed()
Increments the number of documents that failed. |
void |
incrementNumberReplaced()
Increments the number of documents replaced. |
void |
incrementNumberUnchanged()
Increments the number of documents unchanged. |
void |
incrementNumberValidated()
Increments the number of documents validated. |
void |
setHttpClient(HttpClientRequest client)
Sets an HTTP client suitable for outbound requests. |
void |
setLastException(Exception e)
Sets the last exception encountered (if applicable). |
void |
setMessageBroker(MessageBroker messageBroker)
Sets the resource bundle message broker. |
void |
setNumberCreated(int number)
Sets the number of documents created. |
void |
setNumberDeteted(int number)
Sets the number of documents deleted. |
void |
setNumberFailed(int number)
Sets the number of documents that failed. |
void |
setNumberReplaced(int number)
Sets the number of documents replaced. |
void |
setNumberUnchanged(int number)
Sets the number of documents unchanged. |
void |
setNumberValidated(int number)
Sets the number of documents validated. |
void |
setPublisher(Publisher publisher)
Sets publisher associated with the processing request. |
void |
setRequestContext(RequestContext requestContext)
Sets the underlying request context. |
void |
setTemplate(PublicationRecord template)
Sets the template associated with new documents. |
void |
setValidateOnly(boolean wasValidateOnly)
Sets ets the status indicating if this is a validate only request. |
void |
setWasSingleSource(boolean wasSingleSource)
Sets the status indicating if processing occurred against a single source document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProcessingContext()
public ProcessingContext(RequestContext requestContext, Publisher publisher, HttpClientRequest httpClient, PublicationRecord template, boolean validateOnly)
requestContext
- the underlying request contextpublisher
- the publisher associated with the processing requesthttpClient
- an HTTP client suitable for outbound requeststemplate
- the template associated with new documents (can be null)validateOnly
- true if this is a validate only requestMethod Detail |
---|
public HttpClientRequest getHttpClient()
public void setHttpClient(HttpClientRequest client)
client
- the HTTP clientpublic Exception getLastException()
public void setLastException(Exception e)
e
- the last exceptionpublic MessageBroker getMessageBroker()
public void setMessageBroker(MessageBroker messageBroker)
messageBroker
- the message brokerpublic int getNumberCreated()
public void setNumberCreated(int number)
number
- the number createdpublic int getNumberDeleted()
public void setNumberDeteted(int number)
number
- the number deletedpublic int getNumberFailed()
public void setNumberFailed(int number)
number
- the number that failedpublic int getNumberReplaced()
public void setNumberReplaced(int number)
number
- the number replacedpublic int getNumberUnchanged()
public void setNumberUnchanged(int number)
number
- the number unchangedpublic int getNumberValidated()
public void setNumberValidated(int number)
number
- the number validatedpublic List<ProcessedRecord> getProcessedRecords()
public Publisher getPublisher()
public void setPublisher(Publisher publisher)
publisher
- the publisherpublic RequestContext getRequestContext()
public void setRequestContext(RequestContext requestContext)
requestContext
- the request contextpublic PublicationRecord getTemplate()
public void setTemplate(PublicationRecord template)
template
- the new document templatepublic boolean getValidateOnly()
public void setValidateOnly(boolean wasValidateOnly)
wasValidateOnly
- true if this is a validate only requestpublic boolean getWasSingleSource()
public void setWasSingleSource(boolean wasSingleSource)
wasSingleSource
- true if processing occurred against a single source documentpublic void incrementNumberCreated()
public void incrementNumberDeleted()
public void incrementNumberFailed()
public void incrementNumberReplaced()
public void incrementNumberUnchanged()
public void incrementNumberValidated()
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |