Inherits ResourceInstance.
Public Member Functions | |
| PrinterResource () | |
| Creates a new PrinterResource with the default values. | |
| PrinterResource (ResourceInstance resourceInstance) | |
| Creates a new PrinterResource based on a generic ResourceInstance. | |
| Job | getPrinterList () |
| Creates a new Job which once executed, returns the list of printers on the network. | |
| Job | print (String printerId, File documentToPrint) throws IOException |
| Creates a new Job which once executed, prints a document on the printer passed as parameter. | |
Static Public Member Functions | |
| static PrinterResource | cast (ResourceInstance resourceInstance) |
| Converts a generic ResourceInstance into a new one of type PrinterResource. | |
Static Public Attributes | |
| static final String | ID = "Printer" |
| String containing the identifier for this resource. | |
| com.abiquo.api.resources.PrinterResource.PrinterResource | ( | ResourceInstance | resourceInstance | ) |
Creates a new PrinterResource based on a generic ResourceInstance.
| resourceInstance | The generic ResourceInstance |
| static PrinterResource com.abiquo.api.resources.PrinterResource.cast | ( | ResourceInstance | resourceInstance | ) | [static] |
Converts a generic ResourceInstance into a new one of type PrinterResource.
| resourceInstance | The generic ResourceInstance |
| Job com.abiquo.api.resources.PrinterResource.getPrinterList | ( | ) |
Creates a new Job which once executed, returns the list of printers on the network.
| Job com.abiquo.api.resources.PrinterResource.print | ( | String | printerId, | |
| File | documentToPrint | |||
| ) | throws IOException |
Creates a new Job which once executed, prints a document on the printer passed as parameter.
| printerId | the printer id | |
| documentToPrint | the document to print |
| IOException | Signals that an I/O exception has occurred. |
final String com.abiquo.api.resources.PrinterResource.ID = "Printer" [static] |
String containing the identifier for this resource.
1.5.5