es.caib.signatura.afirma.rfc3161
Class RFC3161Connection

java.lang.Object
  extended by java.net.URLConnection
      extended by es.caib.signatura.afirma.rfc3161.RFC3161Connection

public class RFC3161Connection
extends java.net.URLConnection


Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
protected RFC3161Connection(java.net.URL url)
           
 
Method Summary
 void connect()
          connecta con el servidor estableciendo el valor del timeout de la conexión.
 java.io.InputStream getInputStream()
          Returns a RAW input stream that reads from this open connection.
 java.io.OutputStream getOutputStream()
          Returns a RAW output stream that writes to this connection.
 TsaInputStream getTsaInputStream()
          Devuelve un Stream de entrada que es capaz de interpretar el mensaje en el formato de la TSA y devolver su contenido.
 TsaOutputStream getTsaOutputStream()
           
 
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getLastModified, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RFC3161Connection

protected RFC3161Connection(java.net.URL url)
Method Detail

connect

public void connect()
             throws java.io.IOException
connecta con el servidor estableciendo el valor del timeout de la conexión.

Specified by:
connect in class java.net.URLConnection
Throws:
java.io.IOException

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Returns a RAW input stream that reads from this open connection. A SocketTimeoutException can be thrown when reading from the returned input stream if the read timeout expires before data is available for read.

Overrides:
getInputStream in class java.net.URLConnection
Returns:
an input stream that reads from this open connection.
Throws:
java.io.IOException - if an I/O error occurs while creating the input stream.
java.net.UnknownServiceException - if the protocol does not support input.
See Also:
URLConnection.setReadTimeout(int), URLConnection.getReadTimeout()

getTsaInputStream

public TsaInputStream getTsaInputStream()
                                 throws java.io.IOException
Devuelve un Stream de entrada que es capaz de interpretar el mensaje en el formato de la TSA y devolver su contenido.

Returns:
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Returns a RAW output stream that writes to this connection.

Overrides:
getOutputStream in class java.net.URLConnection
Returns:
an output stream that writes to this connection.
Throws:
java.io.IOException - if an I/O error occurs while creating the output stream.
java.net.UnknownServiceException - if the protocol does not support output.

getTsaOutputStream

public TsaOutputStream getTsaOutputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2011 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.