|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.ui.viewer.OwAbstractInfoProvider
public abstract class OwAbstractInfoProvider
Abstract Information Provider. This implementation is based on a XML request and response.
In the handleRequest will be try to parse the request body as a
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Field Summary |
|---|
| Fields inherited from interface com.wewebu.ow.server.ui.viewer.OwInfoProvider |
|---|
PARAM_CONTEXT, PARAM_DMSID |
| Constructor Summary | |
|---|---|
OwAbstractInfoProvider()
|
|
| Method Summary | |
|---|---|
void |
handleRequest(OwInfoRequest request_p,
OutputStream answer_p)
Method called to be process a request. |
protected abstract String |
process(Node item_p)
Process XML node (item) and return the String representation for the node to set. |
protected void |
sendAnswer(String answer_p,
OutputStream sendStream_p)
Method transform the given answer into a byte array (UTF-8) and sending through given OutputStream back. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.wewebu.ow.server.ui.viewer.OwInfoProvider |
|---|
getContext |
| Constructor Detail |
|---|
public OwAbstractInfoProvider()
| Method Detail |
|---|
public void handleRequest(OwInfoRequest request_p,
OutputStream answer_p)
throws OwException,
IOException
OwInfoProvider
handleRequest in interface OwInfoProviderrequest_p - OwInformationRequest to processanswer_p - OutputStream to write back answer
IOException - if problems with any I/O handling
OwException
protected void sendAnswer(String answer_p,
OutputStream sendStream_p)
throws UnsupportedEncodingException,
IOException
answer_p - String answer to sendsendStream_p - OutputStream used for answering
UnsupportedEncodingException - if conversion of String to UTF-8 byte array fails
IOException - if sending failed using the given OutputStreamprotected abstract String process(Node item_p)
A node could be:
<prop>NumOfSegments</prop>
Attention returning null will create an empty node
as response. (in this example <NumOfSegments />)
item_p - Node root of single item request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||