Package jp.cssj.driver.ctip.v2
Class V2RequestConsumer
java.lang.Object
jp.cssj.driver.ctip.v2.V2RequestConsumer
-
Method Summary
Modifier and TypeMethodDescriptionvoidabort(byte mode) Requests that processing be aborted.voidclientResource(boolean on) Sets the mode for resolving resources on the client.voidclose()Ends communication.voidcontinuous(boolean continuous) Switches the mode for combining multiple results.voiddata(byte[] b, int off, int len) Sends a data packet.voideof()Signals the end of data.voidjoin()Requests that the results be combined.voidmissingResource(URI uri) Reports a resource as missing.voidSends a property.voidreset()Resets the state.voidserverInfo(URI uri) Requests server information.voidserverMain(URI uri) Retrieves the main document on the server.protected voidsetCTIPSession(V2Session session) voidSignals the start of the main document.voidstartResource(URI uri, String mimeType, String encoding, long length) Signals the start of a resource.
-
Method Details
-
setCTIPSession
-
property
Sends a property.- Parameters:
name- The property name.value- The value.- Throws:
IOException
-
clientResource
Sets the mode for resolving resources on the client.- Parameters:
on- true to enable the mode, false to disable it.- Throws:
IOException
-
startMain
Signals the start of the main document.- Parameters:
uri- The virtual URI.mimeType- The MIME type.encoding- The character encoding.- Throws:
IOException
-
serverMain
Retrieves the main document on the server.- Parameters:
uri- The URI of the main document.- Throws:
IOException
-
data
Sends a data packet.- Parameters:
b- The byte array buffer.off- The starting offset of the data.len- The length of the data.- Throws:
IOException
-
startResource
public void startResource(URI uri, String mimeType, String encoding, long length) throws IOException Signals the start of a resource.- Parameters:
uri- The virtual URI.mimeType- The MIME type.encoding- The character encoding.- Throws:
IOException
-
missingResource
Reports a resource as missing.- Parameters:
uri- The URI of the resource.- Throws:
IOException
-
eof
Signals the end of data.- Throws:
IOException
-
continuous
Switches the mode for combining multiple results.- Parameters:
continuous- The mode for combining results.- Throws:
IOException
-
join
Requests that the results be combined.- Throws:
IOException
-
abort
Requests that processing be aborted.- Parameters:
mode- The abort mode.- Throws:
IOException
-
reset
Resets the state.- Throws:
IOException
-
close
Ends communication.- Throws:
IOException
-
serverInfo
Requests server information.- Parameters:
uri- The URI of the server information.- Throws:
IOException
-